Don't wrap str unnecessarily

Just an inefficiency that I found.
This commit is contained in:
Ghostkeeper 2019-12-13 10:44:29 +01:00
parent ef4ee5d6b6
commit e54ce8643b
No known key found for this signature in database
GPG key ID: 37E2020986774393

View file

@ -129,7 +129,7 @@ class ZeroConfClient:
type_of_device = info.properties.get(b"type", None)
if type_of_device:
if type_of_device == b"printer":
address = '.'.join(map(lambda n: str(n), info.address))
address = '.'.join(map(str, info.address))
self.addedNetworkCluster.emit(str(name), address, info.properties)
else:
Logger.log("w", "The type of the found device is '%s', not 'printer'." % type_of_device)