Minor refactor to make code more readable

CURA-336
This commit is contained in:
Jaime van Kessel 2016-06-28 12:59:37 +02:00
parent 804ff66c9a
commit 5e51d4d998

View file

@ -30,7 +30,7 @@ class DiscoverUM3Action(MachineAction):
def foundDevices(self):
if self._network_plugin:
printers = self._network_plugin.getPrinters()
return [printers[printer] for printer in printers]
return list(printers.values())
else:
return []