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. |