From 506281535eebb163780ff34364faa4152c9f5d50 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 12 Jan 2015 19:36:46 +0100 Subject: Python 2.6 str.decode doesn't have keyword parameters. --- setup.py | 2 +- yamlish.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 53b072a..1a970b2 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ def read(fname): setup( name='yamlish', - version="0.15", + version="0.15.1", description='Python implementation of YAMLish', author='Matěj Cepl', author_email='mcepl@redhat.com', diff --git a/yamlish.py b/yamlish.py index a387d35..0c84c3b 100644 --- a/yamlish.py +++ b/yamlish.py @@ -190,7 +190,7 @@ def load(source, ignore_wrong_characters=False): except UnicodeDecodeError: log.debug('in ignore_wrong_characters = %s', ignore_wrong_characters) if ignore_wrong_characters: - inobj += line.decode('utf8', errors='ignore') + '\n' + inobj += line.decode('utf8', 'ignore') + '\n' else: raise log.debug('restarting load with inobj as string') -- cgit