summaryrefslogtreecommitdiff
path: root/sleekxmpp/thirdparty/mini_dateutil.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-18 11:56:10 -0800
committerLance Stout <lancestout@gmail.com>2012-02-18 11:56:10 -0800
commit977fcc06324d93422cb19e1550b280cd04e36f82 (patch)
treef6bbe985ba54ed4c0bc880cfb65eb66cc8412581 /sleekxmpp/thirdparty/mini_dateutil.py
parent94b57d232d0fd1198835a93a013e1f9ff715d5eb (diff)
downloadslixmpp-977fcc06324d93422cb19e1550b280cd04e36f82.tar.gz
slixmpp-977fcc06324d93422cb19e1550b280cd04e36f82.tar.bz2
slixmpp-977fcc06324d93422cb19e1550b280cd04e36f82.tar.xz
slixmpp-977fcc06324d93422cb19e1550b280cd04e36f82.zip
Fix instances of using undefined variables.
Diffstat (limited to 'sleekxmpp/thirdparty/mini_dateutil.py')
-rw-r--r--sleekxmpp/thirdparty/mini_dateutil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/thirdparty/mini_dateutil.py b/sleekxmpp/thirdparty/mini_dateutil.py
index 6af5ffde..d0d3f2ea 100644
--- a/sleekxmpp/thirdparty/mini_dateutil.py
+++ b/sleekxmpp/thirdparty/mini_dateutil.py
@@ -67,6 +67,7 @@
import re
+import math
import datetime
@@ -240,12 +241,12 @@ except:
if frac != None:
# ok, fractions of hour?
if min == None:
- frac, min = _math.modf(frac * 60.0)
+ frac, min = math.modf(frac * 60.0)
min = int(min)
# fractions of second?
if s == None:
- frac, s = _math.modf(frac * 60.0)
+ frac, s = math.modf(frac * 60.0)
s = int(s)
# and extract microseconds...