Fix instances of using undefined variables.
This commit is contained in:
5
sleekxmpp/thirdparty/mini_dateutil.py
vendored
5
sleekxmpp/thirdparty/mini_dateutil.py
vendored
@@ -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...
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import sys
|
||||
|
||||
import random
|
||||
import hmac
|
||||
|
||||
from sleekxmpp.thirdparty.suelta.util import hash, bytes, quote
|
||||
from sleekxmpp.thirdparty.suelta.util import num_to_bytes, bytes_to_num
|
||||
from sleekxmpp.thirdparty.suelta.sasl import Mechanism, register_mechanism
|
||||
from sleekxmpp.thirdparty.suelta.exceptions import SASLError, SASLCancelled
|
||||
|
||||
|
||||
Reference in New Issue
Block a user