Fixed an issue in the Python variant detection code causing none Python files being detected as Python files.

Sun, 30 Mar 2014 15:57:50 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Mar 2014 15:57:50 +0200
changeset 3451
e9ee3ea73db4
parent 3450
2f7c8fd8e3f5
child 3452
802b5324dcc4

Fixed an issue in the Python variant detection code causing none Python files being detected as Python files.

Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/Utilities/__init__.py	Sun Mar 30 15:36:25 2014 +0200
+++ b/Utilities/__init__.py	Sun Mar 30 15:57:50 2014 +0200
@@ -1329,7 +1329,8 @@
         pass
     elif (Preferences.getProject("DeterminePyFromProject") and
           project.isOpen() and
-          project.isProjectFile(filename)):
+          project.isProjectFile(filename) and
+          ext in py2Ext + py3Ext):
                 pyVer = pyAssignment.get(project.getProjectLanguage(), 0)
     elif ext in py2Ext and ext not in py3Ext:
         pyVer = 2

eric ide

mercurial