Sun, 30 Mar 2014 15:57:50 +0200
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