mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-07-04 04:18:00 +02:00
add encoding (#122)
if not set encoding attr,there maybe have some exceptions when open reading.
This commit is contained in:
parent
54883f5134
commit
31dcd9b062
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def fetch_updated_doc():
|
|||
|
||||
|
||||
def render_doc():
|
||||
with open(file_name, 'r') as f:
|
||||
with open(file_name, 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
pydoc.pager(content)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue