QScintilla/Editor.py

branch
5_1_x
changeset 987
156472e165f4
parent 985
749cdce86824
child 995
cd875a519a3a
equal deleted inserted replaced
986:12880ccc4d15 987:156472e165f4
1350 if not language: 1350 if not language:
1351 ext = os.path.splitext(filename)[1] 1351 ext = os.path.splitext(filename)[1]
1352 if ext in [".py", ".pyw"] and \ 1352 if ext in [".py", ".pyw"] and \
1353 Preferences.getProject("DeterminePyFromProject")and \ 1353 Preferences.getProject("DeterminePyFromProject")and \
1354 self.project.isOpen() and \ 1354 self.project.isOpen() and \
1355 self.fileName is not None and \
1355 self.project.isProjectFile(self.fileName): 1356 self.project.isProjectFile(self.fileName):
1356 if self.project.getProjectLanguage() in ["Python", "Python2"]: 1357 if self.project.getProjectLanguage() in ["Python", "Python2"]:
1357 language = "Python2" 1358 language = "Python2"
1358 else: 1359 else:
1359 language = "Python3" 1360 language = "Python3"

eric ide

mercurial