summarylogtreecommitdiffstats
path: root/pyqt5.patch
blob: d4b8c3b7587d5261e14a78b9b0e858881ae3efaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -Nur ipython-yf.orig/yf.py ipython-yf/yf.py
--- ipython-yf.orig/yf.py	2015-09-30 15:32:28.318774525 +1000
+++ ipython-yf/yf.py	2015-09-30 15:32:53.395457672 +1000
@@ -35,7 +35,11 @@
 
 
 if loaded_api() is not None:
-    from PyQt4 import QtCore
+    try:
+        from PyQt5 import QtCore
+    except ImportError:
+        from PyQt4 import QtCore
+
     import quamash