pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/efiring/ipython/commit/434ac7b1c6b0735a44ffeff6d7d8fc5be92fee8d

Fixed PyQt 5.11 backwards incompatibility by moving import sip after … · efiring/ipython@434ac7b · GitHub
Skip to content

Commit 434ac7b

Browse files
author
bnables
committed
Fixed PyQt 5.11 backwards incompatibility by moving import sip after other imports
1 parent 18b5a44 commit 434ac7b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

IPython/external/qt_loaders.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,13 @@ def import_pyqt5():
217217
218218
ImportErrors rasied within this function are non-recoverable
219219
"""
220-
import sip
221220

222221
from PyQt5 import QtCore, QtSvg, QtWidgets, QtGui
223-
222+
223+
# Note that import sip must follow other PyQt5 imports for PyQt >5.11
224+
# http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html#pyqt-v5-11
225+
import sip
226+
224227
# Alias PyQt-specific functions for PySide compatibility.
225228
QtCore.Signal = QtCore.pyqtSignal
226229
QtCore.Slot = QtCore.pyqtSlot

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy