Merge pull request #804 from thopiekar/master-eclipse-markers

Adding a marker for a correctly unresolved import on Linux and OSX
This commit is contained in:
Ghostkeeper 2016-06-16 11:07:27 +02:00 committed by GitHub
commit e308c69c54

View file

@ -232,7 +232,7 @@ class USBPrinterOutputDeviceManager(QObject, SignalEmitter, OutputDevicePlugin,
def getSerialPortList(self, only_list_usb = False):
base_list = []
if platform.system() == "Windows":
import winreg
import winreg #@UnresolvedImport
try:
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE,"HARDWARE\\DEVICEMAP\\SERIALCOMM")
i = 0