Skip to content

Commit

Permalink
Don't load as binary
Browse files Browse the repository at this point in the history
If the file is loaded in binary mode, then comparisons need to be made
in binary mode (which isn't being done).
  • Loading branch information
MinchinWeb committed Mar 31, 2016
1 parent 2ea56cb commit 668aea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reyaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def load(raw):

def load_from_file(path):
'''Load a YAML file and return its contents as a dictionary'''
with open(path, 'rb') as f:
with open(path, 'r') as f:
raw = f.read()
return load(raw)
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
setup(
name = 'reyaml',
packages = ['reyaml'], # this must be the same as the name above
version = '0.2',
version = '0.2.1',
long_description=LONG_DESC,
description = 'Reader of humane YAML files',
author = 'Alex Railean',
author_email = '[email protected]',
url = 'https://github.com/ralienpp/reyaml',
download_url = 'https://github.com/ralienpp/reyaml/tarball/0.2',
download_url = 'https://github.com/ralienpp/reyaml/tarball/0.2.1',
keywords = ['yaml', 'parser', 'configuration', 'config'],
license = 'BSD',
classifiers = [
Expand Down

0 comments on commit 668aea4

Please sign in to comment.