Rename name to printer_name

"name" is a built-in function
This commit is contained in:
Thomas-Karl Pietrowski 2016-03-14 15:39:01 +01:00
parent 3b58d1e2a5
commit af280b782e

View file

@ -59,7 +59,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
@pyqtProperty(float, notify = progressChanged)
def progress(self):
progress = 0
for name, connection in self._printer_connections.items():
for printer_name, connection in self._printer_connections.items():
progress += connection.progress
return progress / len(self._printer_connections)