1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-06-16 17:49:52 +02:00

add encoding

if not set encoding attr,there maybe have some exceptions when open reading.
This commit is contained in:
hippie 2019-05-28 15:04:37 +08:00 committed by GitHub
parent 54883f5134
commit 519bdb8111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ def fetch_updated_doc():
def render_doc(): def render_doc():
with open(file_name, 'r') as f: with open(file_name, 'r', encoding='utf-8') as f:
content = f.read() content = f.read()
pydoc.pager(content) pydoc.pager(content)