From 668aea404c85827efd06fceff001bff4e8c33626 Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Thu, 31 Mar 2016 13:30:13 -0600 Subject: [PATCH] Don't load as binary If the file is loaded in binary mode, then comparisons need to be made in binary mode (which isn't being done). --- reyaml/__init__.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reyaml/__init__.py b/reyaml/__init__.py index d5bfa0d..9cfcfe6 100644 --- a/reyaml/__init__.py +++ b/reyaml/__init__.py @@ -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) diff --git a/setup.py b/setup.py index 7dd356f..911575e 100644 --- a/setup.py +++ b/setup.py @@ -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 = 'ralienpp@gmail.com', 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 = [