From e54ce8643b65597a82b6f508e5c8de4fe67a4fc4 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 13 Dec 2019 10:44:29 +0100 Subject: [PATCH] Don't wrap str unnecessarily Just an inefficiency that I found. --- plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py b/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py index 421246fb95..205a71b5cb 100644 --- a/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py +++ b/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py @@ -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)