zeroconf: string.letters has been removed with Python 3
use ascii_letters which should be sufficient
This commit is contained in:
parent
8a789763a2
commit
c058a1e125
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ class ClientZeroconf:
|
||||||
"""
|
"""
|
||||||
Generate a random id
|
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):
|
def RegisterDisconnectHandler(self, handler):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue