Commit 50628153 authored by Matěj Cepl's avatar Matěj Cepl

Python 2.6 str.decode doesn't have keyword parameters.

parent dba0b0a5
...@@ -12,7 +12,7 @@ def read(fname): ...@@ -12,7 +12,7 @@ def read(fname):
setup( setup(
name='yamlish', name='yamlish',
version="0.15", version="0.15.1",
description='Python implementation of YAMLish', description='Python implementation of YAMLish',
author='Matěj Cepl', author='Matěj Cepl',
author_email='mcepl@redhat.com', author_email='mcepl@redhat.com',
......
...@@ -190,7 +190,7 @@ def load(source, ignore_wrong_characters=False): ...@@ -190,7 +190,7 @@ def load(source, ignore_wrong_characters=False):
except UnicodeDecodeError: except UnicodeDecodeError:
log.debug('in ignore_wrong_characters = %s', ignore_wrong_characters) log.debug('in ignore_wrong_characters = %s', ignore_wrong_characters)
if ignore_wrong_characters: if ignore_wrong_characters:
inobj += line.decode('utf8', errors='ignore') + '\n' inobj += line.decode('utf8', 'ignore') + '\n'
else: else:
raise raise
log.debug('restarting load with inobj as string') log.debug('restarting load with inobj as string')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment