eric6/Tools/webBrowserSupport.py

branch
without_py2_and_pyqt4
changeset 7196
ab0a91b82b37
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- a/eric6/Tools/webBrowserSupport.py	Sat Aug 31 12:58:11 2019 +0200
+++ b/eric6/Tools/webBrowserSupport.py	Sun Sep 01 17:43:03 2019 +0200
@@ -7,8 +7,8 @@
 """
 Script to determine the supported web browser variant.
 
-It looks for QtWebEngine first and the old QtWebKit thereafter. It reports the
-variant found or the string 'None' if both are absent.
+It looks for QtWebEngine. It reports the variant found or the string 'None' if
+it is absent.
 """
 
 from __future__ import unicode_literals
@@ -21,18 +21,7 @@
     from PyQt5 import QtWebEngineWidgets    # __IGNORE_WARNING__
     variant = "QtWebEngine"
 except ImportError:
-    if sys.argv[-1].startswith("4."):
-        try:
-            from PyQt4 import QtWebKit      # __IGNORE_WARNING__
-            variant = "QtWebKit"
-        except ImportError:
-            pass
-    else:
-        try:
-            from PyQt5 import QtWebKit      # __IGNORE_WARNING__
-            variant = "QtWebKit"
-        except ImportError:
-            pass
+    pass
 
 print(variant)      # __IGNORE_WARNING_M801__
 

eric ide

mercurial