Actually, we can work around needing dateutil.

If dateutil is present, we'll use that. If not, we'll use
some regexes from the fixed_datetime module.
This commit is contained in:
Lance Stout
2011-08-04 20:20:22 -07:00
parent 6eac0606cf
commit 4d8933abdf
8 changed files with 310 additions and 54 deletions
+1 -6
View File
@@ -11,12 +11,7 @@ import datetime as dt
from sleekxmpp.xmlstream import ElementBase
from sleekxmpp.plugins import xep_0082
try:
from dateutil.tz import tzutc
except:
log = logging.getLogger(__name__)
log.warning("XEP-0202 plugin requies dateutil package")
from sleekxmpp.thirdparty import tzutc, tzoffset
class EntityTime(ElementBase):