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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user