zeroconf: string.letters has been removed with Python 3

use ascii_letters which should be sufficient
This commit is contained in:
André Apitzsch 2017-04-10 23:48:52 +02:00
parent 8a789763a2
commit c058a1e125
1 changed files with 1 additions and 1 deletions

View File

@ -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):
"""