eric6/Utilities/ModuleParser.py

changeset 7635
0cdead130a81
parent 7628
f904d0eef264
child 7639
422fd05e9c91
--- a/eric6/Utilities/ModuleParser.py	Sat Jun 20 17:36:20 2020 +0200
+++ b/eric6/Utilities/ModuleParser.py	Sun Jun 21 18:26:12 2020 +0200
@@ -24,7 +24,6 @@
 
 import Utilities
 from functools import reduce
-import Preferences
 
 __all__ = ["Module", "Class", "Function", "Attribute", "RbModule",
            "readModule", "getTypeFromTypeName"]
@@ -39,7 +38,6 @@
 SUPPORTED_TYPES = [PY_SOURCE, PTL_SOURCE, RB_SOURCE]
 TYPE_MAPPING = {
     "Python": PY_SOURCE,
-    "Python2": PY_SOURCE,
     "Python3": PY_SOURCE,
     "MicroPython": PY_SOURCE,
     "Ruby": RB_SOURCE,
@@ -1274,11 +1272,7 @@
         @return type of the modules's source (string)
         """
         if self.type in [PY_SOURCE, PTL_SOURCE]:
-            py3ExtList = Preferences.getDebugger("Python3Extensions").split()
-            if self.file.endswith(tuple(py3ExtList)):
-                moduleType = "Python3"
-            else:
-                moduleType = "Python2"
+            moduleType = "Python3"
         elif self.type == RB_SOURCE:
             moduleType = "Ruby"
         else:

eric ide

mercurial