mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Removing unused imports
This commit is contained in:
parent
148c13ac31
commit
6a4e2019dc
2 changed files with 2 additions and 5 deletions
|
@ -5,7 +5,6 @@ from UM.View.View import View
|
|||
from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator
|
||||
from UM.Resources import Resources
|
||||
from UM.Application import Application
|
||||
from UM.Math.Color import Color
|
||||
from UM.Preferences import Preferences
|
||||
from UM.View.Renderer import Renderer
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
from UM.Signal import Signal, SignalEmitter
|
||||
from . import PrinterConnection
|
||||
from UM.Application import Application
|
||||
from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator
|
||||
from UM.Scene.SceneNode import SceneNode
|
||||
from UM.Resources import Resources
|
||||
from UM.Logger import Logger
|
||||
from UM.PluginRegistry import PluginRegistry
|
||||
|
@ -20,7 +18,6 @@ import platform
|
|||
import glob
|
||||
import time
|
||||
import os.path
|
||||
import sys
|
||||
from UM.Extension import Extension
|
||||
|
||||
from PyQt5.QtQuick import QQuickView
|
||||
|
@ -59,7 +56,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
|||
@pyqtProperty(float, notify = progressChanged)
|
||||
def progress(self):
|
||||
progress = 0
|
||||
for printer_name, connection in self._printer_connections.items():
|
||||
for printer_name, connection in self._printer_connections.items(): # TODO: @UnusedVariable "printer_name"
|
||||
progress += connection.progress
|
||||
|
||||
return progress / len(self._printer_connections)
|
||||
|
@ -231,6 +228,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
|||
base_list += [values[1]]
|
||||
i += 1
|
||||
except Exception as e:
|
||||
Logger.log("d", "USBPrinterManager.getSerialPortList: ", e)
|
||||
pass
|
||||
else:
|
||||
if only_list_usb:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue