src/eric7/UI/BrowserModel.py

branch
eric7
changeset 9492
b3659e05a156
parent 9482
a2bc06a54d9d
child 9609
c2f9c10c47cc
equal deleted inserted replaced
9491:91bcf8b893ee 9492:b3659e05a156
1290 Public method to check, if this file is a Python3 script. 1290 Public method to check, if this file is a Python3 script.
1291 1291
1292 @return flag indicating a Python3 file 1292 @return flag indicating a Python3 file
1293 @rtype bool 1293 @rtype bool
1294 """ 1294 """
1295 return self.fileext in Preferences.getPython("Python3Extensions") or ( 1295 return (
1296 self.fileext == "" and self.sourceLanguage == "Python3" 1296 self.fileext in Preferences.getPython("Python3Extensions")
1297 or (self.fileext == "" and self.sourceLanguage == "Python3")
1298 or (
1299 not Preferences.getPython("Python3Extensions")
1300 and self.fileext in (".py", ".pyw")
1301 )
1297 ) 1302 )
1298 1303
1299 def isCythonFile(self): 1304 def isCythonFile(self):
1300 """ 1305 """
1301 Public method to check, if this file is a Cython file. 1306 Public method to check, if this file is a Cython file.

eric ide

mercurial