mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-06 05:10:08 +03:00
Merge 139143ae62
into 90ee1ebba5
This commit is contained in:
commit
ae9d26644d
|
@ -34,9 +34,12 @@ from psycopg2._psycopg import new_type, new_array_type, register_type
|
||||||
|
|
||||||
|
|
||||||
# import the best json implementation available
|
# import the best json implementation available
|
||||||
if sys.version_info[:2] >= (2,6):
|
try:
|
||||||
|
import ujson as json
|
||||||
|
except ImportError:
|
||||||
|
if sys.version_info[:2] >= (2,6):
|
||||||
import json
|
import json
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user