mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Don't wrap str unnecessarily
Just an inefficiency that I found.
This commit is contained in:
parent
ef4ee5d6b6
commit
e54ce8643b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue