mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +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:
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user