try fixing the issue presented in https://github.com/ndparker/rjsmin/pull/2
This commit is contained in:
parent
2e25932822
commit
14bcc97350
@ -41,7 +41,7 @@ def _cleanup_epydoc(target):
|
||||
"""
|
||||
search = _re.compile(r'<table[^<>]+width="100%%"').search
|
||||
for filename in _shell.files(target, '*.html'):
|
||||
fp = open(filename, 'r')
|
||||
fp = open(filename, 'r', encoding='latin-1')
|
||||
try:
|
||||
html = fp.read()
|
||||
finally:
|
||||
@ -53,7 +53,7 @@ def _cleanup_epydoc(target):
|
||||
if end >= 0:
|
||||
end += len('</table>') + 1
|
||||
html = html[:start] + html[end:]
|
||||
fp = open(filename, 'w')
|
||||
fp = open(filename, 'w', encoding='latin-1')
|
||||
try:
|
||||
fp.write(html)
|
||||
finally:
|
||||
|
Loading…
x
Reference in New Issue
Block a user