mirror of
https://github.com/coursera-dl/coursera-dl.git
synced 2026-07-17 16:35:35 +00:00
Merge pull request #662 from TheGoddessInari/master
setup.py: Match file.open encoding with the source code encoding.
This commit is contained in:
commit
fb890e9756
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -48,7 +48,7 @@ def read_file(filename, alt=None):
|
|||
lines = None
|
||||
|
||||
try:
|
||||
with open(filename) as f:
|
||||
with open(filename, encoding='utf-8') as f:
|
||||
lines = f.read()
|
||||
except IOError:
|
||||
lines = [] if alt is None else alt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue