forked from expo/troggle
revert
This commit is contained in:
parent
cafde67c02
commit
322d454d41
@ -128,11 +128,6 @@ def expowebpage(request, expowebpath, path):
|
||||
try:
|
||||
with open(os.path.normpath(expowebpath / path), "r") as o:
|
||||
html = o.read()
|
||||
except:
|
||||
try:
|
||||
with open(os.path.normpath(expowebpath / path), "r", encoding='iso-8859-1') as o:
|
||||
html = o.read()
|
||||
html = str(o.read()).replace("<h1>","<h1>ISO-8859-1 characters here - ")
|
||||
except:
|
||||
try:
|
||||
with open(os.path.normpath(expowebpath / path), "rb") as o:
|
||||
|
Loading…
Reference in New Issue
Block a user