mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Time-handling updates. New load order is:
mxdatetime (wrapper around mx.DateTime) pytimes (wrapper around Python-2.3+ datetime) stringtimes (minimal string implementation) The logic is, if you're running Python-2.3 and are have mx.Datetime, you probably want to use that instead of datetime.
This commit is contained in:
@ -6,11 +6,11 @@ This module provides some Date and Time classes for dealing with MySQL data.
|
||||
from _mysql import string_literal
|
||||
|
||||
try:
|
||||
from pytimes import *
|
||||
from mxdatetimes import *
|
||||
|
||||
except ImportError:
|
||||
try:
|
||||
from mxdatetimes import *
|
||||
from pytimes import *
|
||||
|
||||
except ImportError:
|
||||
# no DateTime? We'll muddle through somehow.
|
||||
|
Reference in New Issue
Block a user