Python 3.1 bytes.decode() doesn't support keyword arguments

Sucker.
This commit is contained in:
Daniele Varrazzo 2015-02-08 19:40:52 +00:00
parent 296caa4556
commit 569fd0975b

View File

@ -102,7 +102,7 @@ class Json(object):
else:
def __str__(self):
# getquoted is binary in Py3
return self.getquoted().decode('ascii', errors='replace')
return self.getquoted().decode('ascii', 'replace')
def register_json(conn_or_curs=None, globally=False, loads=None,