summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index be6700d..031bcee 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -283,7 +283,7 @@ def editexpopage(request, path):
try:
filepath = Path(settings.EXPOWEB) / path
- o = open(filepath, "r")
+ o = open(filepath.encode(sysdefaultencoding), "r")
html = o.read()
autogeneratedmatch = re.search(r"\<\!--\s*(.*?(Do not edit|It is auto-generated).*?)\s*--\>", html, re.DOTALL + re.IGNORECASE)
if autogeneratedmatch: