Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Conversation

@KevinMyDing
Copy link

No description provided.

data = fh.read()
elif url_scheme == '':
with open(path) as fh:
with open(path, encoding='utf-8') as fh:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

py2.7 has no keyword argument encoding. So maybe it's better to read the file in binary mode and decode it to utf-8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants