mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:03:44 +02:00
Use explicit module imports for Qt to get better tracebacks
This commit is contained in:
parent
1bddc1c9ef
commit
be38e09a34
1 changed files with 3 additions and 4 deletions
|
|
@ -13,10 +13,9 @@
|
|||
from io import BytesIO
|
||||
from threading import Thread
|
||||
|
||||
from PyQt5.Qt import (
|
||||
QBuffer, QByteArray, QColor, QImage, QImageReader, QImageWriter, QPixmap, Qt,
|
||||
QTransform
|
||||
)
|
||||
# We use explicit module imports so tracebacks when importing are more useful
|
||||
from PyQt5.QtCore import QBuffer, QByteArray, Qt
|
||||
from PyQt5.QtGui import QColor, QImage, QImageReader, QImageWriter, QPixmap, QTransform
|
||||
|
||||
from calibre import fit_image, force_unicode
|
||||
from calibre.constants import iswindows, plugins
|
||||
|
|
|
|||
Loading…
Reference in a new issue