From af280b782e935e55ca482f98e0b57d02328e4c2d Mon Sep 17 00:00:00 2001 From: Thomas-Karl Pietrowski Date: Mon, 14 Mar 2016 15:39:01 +0100 Subject: [PATCH] Rename name to printer_name "name" is a built-in function --- plugins/USBPrinting/USBPrinterManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/USBPrinting/USBPrinterManager.py b/plugins/USBPrinting/USBPrinterManager.py index e9b3763413..47db383e32 100644 --- a/plugins/USBPrinting/USBPrinterManager.py +++ b/plugins/USBPrinting/USBPrinterManager.py @@ -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)