Skip to content
Snippets Groups Projects
Commit 8e3e9b4d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Merge branch 'zeroconf' into 'master'

fix python errors in client zeroconf

See merge request !82
parents 14091642 4725858a
No related branches found
No related tags found
No related merge requests found
......@@ -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):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment