mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 23:23:17 +08:00
Don't wrap str unnecessarily
Just an inefficiency that I found.
This commit is contained in:
parent
ef4ee5d6b6
commit
e54ce8643b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user