Skip to content
Snippets Groups Projects
Commit f4ff192f authored by Ian Cordasco's avatar Ian Cordasco Committed by GitHub
Browse files

Merge pull request #42 from jaraco/patch-1

Fix ValueError: read of closed file
parents a3d91e85 b273cbeb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -307,7 +307,7 @@ def _read(filename):
# Fall back if file encoding is improperly declared
with open(filename, encoding='latin-1') as f:
return f.read()
with open(filename, 'r', encoding=encoding):
with open(filename, 'r', encoding=encoding) as f:
return f.read()
 
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment