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
|
search = _re.compile(r'<table[^<>]+width="100%%"').search
|
||||||
for filename in _shell.files(target, '*.html'):
|
for filename in _shell.files(target, '*.html'):
|
||||||
fp = open(filename, 'r')
|
fp = open(filename, 'r', encoding='latin-1')
|
||||||
try:
|
try:
|
||||||
html = fp.read()
|
html = fp.read()
|
||||||
finally:
|
finally:
|
||||||
|
@ -53,7 +53,7 @@ def _cleanup_epydoc(target):
|
||||||
if end >= 0:
|
if end >= 0:
|
||||||
end += len('</table>') + 1
|
end += len('</table>') + 1
|
||||||
html = html[:start] + html[end:]
|
html = html[:start] + html[end:]
|
||||||
fp = open(filename, 'w')
|
fp = open(filename, 'w', encoding='latin-1')
|
||||||
try:
|
try:
|
||||||
fp.write(html)
|
fp.write(html)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue