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
|
@ -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