Merge pull request #665 from thopiekar/master-code-fixes

Fixing small issues in the code
This commit is contained in:
Ghostkeeper 2016-03-15 10:57:50 +01:00
commit e4effc1236
16 changed files with 25 additions and 45 deletions

View file

@ -19,7 +19,6 @@ import threading
import platform
import glob
import time
import os
import os.path
import sys
from UM.Extension import Extension
@ -60,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)