Fix encoding issue, in some cases (?)

there was not a bug when running `pserve` on the console, but there *was* a bug
when running via mod_wsgi...
This commit is contained in:
Lance Edgar 2018-03-13 00:12:27 -05:00
parent fe5594d1aa
commit b60009fd5b

View file

@ -72,7 +72,7 @@ DOC_WRONG_FORMAT = 'Format "%s" is not supported.'
WARNING_FINALIZE_ERROR = 'Warning: error while calling finalize function. %s' WARNING_FINALIZE_ERROR = 'Warning: error while calling finalize function. %s'
# Default automatic text styles added by pod in content.xml # Default automatic text styles added by pod in content.xml
f = open('%s/styles.in.content.xml' % os.path.dirname(appy.pod.__file__)) f = open('%s/styles.in.content.xml' % os.path.dirname(appy.pod.__file__), encoding='utf8')
CONTENT_POD_STYLES = f.read() CONTENT_POD_STYLES = f.read()
f.close() f.close()