Skip to content

Commit 31dcd9b

Browse files
hippieZhousatwikkansal
authored andcommitted
add encoding (satwikkansal#122)
if not set encoding attr,there maybe have some exceptions when open reading.
1 parent 54883f5 commit 31dcd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wtfpython-pypi/wtf_python/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def fetch_updated_doc():
2121

2222

2323
def render_doc():
24-
with open(file_name, 'r') as f:
24+
with open(file_name, 'r', encoding='utf-8') as f:
2525
content = f.read()
2626
pydoc.pager(content)
2727

0 commit comments

Comments
 (0)