mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Fix mxDateTime import for version 2.0.0 (now mx.DateTime).
This commit is contained in:
@ -61,8 +61,12 @@ type_conv = { FIELD_TYPE.TINY: int,
|
||||
FIELD_TYPE.YEAR: int }
|
||||
|
||||
try:
|
||||
try: from mx import DateTime # new packaging
|
||||
except ImportError: import DateTime # old packaging
|
||||
try:
|
||||
from mx import DateTime # new packaging
|
||||
from mx.DateTime import Date, Time, Timestamp, ISO, \
|
||||
DateTimeType, DateTimeDeltaType
|
||||
except ImportError:
|
||||
import DateTime # old packaging
|
||||
from DateTime import Date, Time, Timestamp, ISO, \
|
||||
DateTimeType, DateTimeDeltaType
|
||||
|
||||
|
Reference in New Issue
Block a user