mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-11-23 23:13:02 -05:00
Use explicit module imports for Qt to get better tracebacks
This commit is contained in:
parent
1bddc1c9ef
commit
be38e09a34
@ -13,10 +13,9 @@ import tempfile
|
|||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from PyQt5.Qt import (
|
# We use explicit module imports so tracebacks when importing are more useful
|
||||||
QBuffer, QByteArray, QColor, QImage, QImageReader, QImageWriter, QPixmap, Qt,
|
from PyQt5.QtCore import QBuffer, QByteArray, Qt
|
||||||
QTransform
|
from PyQt5.QtGui import QColor, QImage, QImageReader, QImageWriter, QPixmap, QTransform
|
||||||
)
|
|
||||||
|
|
||||||
from calibre import fit_image, force_unicode
|
from calibre import fit_image, force_unicode
|
||||||
from calibre.constants import iswindows, plugins
|
from calibre.constants import iswindows, plugins
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user