eric6/PipInterface/PipPackageDetailsDialog.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- a/eric6/PipInterface/PipPackageDetailsDialog.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/PipInterface/PipPackageDetailsDialog.py	Sat Aug 31 12:58:11 2019 +0200
@@ -8,10 +8,6 @@
 """
 
 from __future__ import unicode_literals
-try:
-    basestring    # __IGNORE_WARNING__
-except NameError:
-    basestring = str
 
 from PyQt5.QtCore import Qt, QLocale
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem, \
@@ -181,7 +177,7 @@
         elif text is None:
             text = ""
         if forUrl:
-            if not isinstance(text, basestring) or \
+            if not isinstance(text, str) or \
                     not text.startswith(("http://", "https://", "ftp://")):
                 # ignore if the schema is not one of the listed ones
                 text = ""

eric ide

mercurial