mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2025-07-21 13:31:14 +02:00
add encoding (#122)
if not set encoding attr,there maybe have some exceptions when open reading.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user