Skip to content
Snippets Groups Projects
Commit b273cbeb authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub
Browse files

Fix ValueError: read of closed file

parent a3d91e85
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