mirror of https://gitlab.com/bashrc2/epicyon
Replace dashes
parent
81cc189755
commit
c2832c0e5e
|
@ -9,7 +9,6 @@ __status__ = "Production"
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import datetime
|
import datetime
|
||||||
import unicodedata
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from newswire import getDictFromNewswire
|
from newswire import getDictFromNewswire
|
||||||
from posts import createNewsPost
|
from posts import createNewsPost
|
||||||
|
@ -51,8 +50,9 @@ def saveArrivedTime(baseDir: str, postFilename: str, arrived: str) -> None:
|
||||||
arrivedFile.close()
|
arrivedFile.close()
|
||||||
|
|
||||||
|
|
||||||
def removeControlCharacters(content: str):
|
def removeControlCharacters(content: str) -> str:
|
||||||
return "".join(ch for ch in content if unicodedata.category(ch)[0]!="C")
|
return content.replace('&8211;', '-')
|
||||||
|
|
||||||
|
|
||||||
def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
domain: str, port: int,
|
domain: str, port: int,
|
||||||
|
|
Loading…
Reference in New Issue