mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 20:30:09 +03:00
Merge 10feb5350d
into 4b4d2796b7
This commit is contained in:
commit
82696d8423
|
@ -78,6 +78,9 @@ class Json(object):
|
||||||
if proto is ISQLQuote:
|
if proto is ISQLQuote:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return self.dumps()
|
||||||
|
|
||||||
def dumps(self, obj):
|
def dumps(self, obj):
|
||||||
"""Serialize *obj* in JSON format.
|
"""Serialize *obj* in JSON format.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user