[misc] Fix a coding issue. Fix #3399.
This commit is contained in:
parent
388c012834
commit
b44b905787
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class StanzaSession(object):
|
||||||
self.negotiated = {}
|
self.negotiated = {}
|
||||||
|
|
||||||
def generate_thread_id(self):
|
def generate_thread_id(self):
|
||||||
return "".join([random.choice(string.letters) for x in xrange(0,32)])
|
return "".join([random.choice(string.ascii_letters) for x in xrange(0,32)])
|
||||||
|
|
||||||
def send(self, msg):
|
def send(self, msg):
|
||||||
if self.thread_id:
|
if self.thread_id:
|
||||||
|
|
Loading…
Add table
Reference in a new issue