mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 18:33:44 +03:00
Python 3.1 bytes.decode() doesn't support keyword arguments
Sucker.
This commit is contained in:
parent
296caa4556
commit
569fd0975b
|
@ -102,7 +102,7 @@ class Json(object):
|
||||||
else:
|
else:
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
# getquoted is binary in Py3
|
# 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,
|
def register_json(conn_or_curs=None, globally=False, loads=None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user