Merge branch 'zeroconf' into 'master'
fix python errors in client zeroconf See merge request !82
This commit is contained in:
commit
8e3e9b4d9d
|
@ -756,7 +756,7 @@ class ClientZeroconf:
|
|||
if to is None:
|
||||
# Can’t send undirected stanza over Zeroconf.
|
||||
return -1
|
||||
to = gajim.get_jid_without_resource(to)
|
||||
to = to.getStripped()
|
||||
stanza.setFrom(self.roster.zeroconf.name)
|
||||
|
||||
try:
|
||||
|
@ -801,7 +801,7 @@ class ClientZeroconf:
|
|||
"""
|
||||
Generate a random id
|
||||
"""
|
||||
return ''.join(Random().sample(string.letters + string.digits, 6))
|
||||
return ''.join(Random().sample(string.ascii_letters + string.digits, 6))
|
||||
|
||||
def RegisterDisconnectHandler(self, handler):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue