mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: misc fixes
This commit is contained in:
parent
601c5ca255
commit
75d3542287
@ -17,7 +17,7 @@ from PyQt5.Qt import (
|
|||||||
from calibre.ebooks import BOOK_EXTENSIONS
|
from calibre.ebooks import BOOK_EXTENSIONS
|
||||||
from calibre.gui2.device_drivers.mtp_config import (FormatsConfig, TemplateConfig)
|
from calibre.gui2.device_drivers.mtp_config import (FormatsConfig, TemplateConfig)
|
||||||
from calibre.devices.usbms.driver import debug_print
|
from calibre.devices.usbms.driver import debug_print
|
||||||
from polyglot.builtins import unicode_type
|
from polyglot.builtins import unicode_type, range
|
||||||
|
|
||||||
|
|
||||||
def wrap_msg(msg):
|
def wrap_msg(msg):
|
||||||
@ -164,7 +164,7 @@ class TabbedDeviceConfig(QTabWidget):
|
|||||||
return getattr(atab, attr_name)
|
return getattr(atab, attr_name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
raise ae
|
raise ae
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device(self):
|
def device(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user