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
1 changed files with 1 additions and 1 deletions

View File

@ -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)