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:
adustman
2003-11-23 22:02:13 +00:00
parent 8308b8de7e
commit c924bec96d
5 changed files with 21 additions and 7 deletions

View File

@ -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.