Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
construct file contents as byte strings to fix encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arnisoph committed Oct 8, 2016
1 parent 977e5cc commit e3b3fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabellarius/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def parse_directory(self):
for file_name in files:
file_path = '{0}/{1}'.format(dirname, file_name)
if file_name.endswith('.yaml'):
with open(file_path, 'r') as stream:
with open(file_path, 'rb') as stream:
data = yaml.load(stream)
if data:
for root, value in data.items():
Expand Down

0 comments on commit e3b3fa0

Please sign in to comment.