We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.py%
1 parent 8d30ee5 commit 47686a6Copy full SHA for 47686a6
python/ql/src/semmle/python/Files.qll
@@ -79,7 +79,7 @@ class File extends Container {
79
exists(this.getRelativePath()) and
80
(
81
// The file doesn't have the extension `.py` but still contains Python statements
82
- not this.getExtension() = "py" and
+ not this.getExtension().matches("py%") and
83
exists(Stmt s | s.getLocation().getFile() = this)
84
or
85
// The file contains the usual `if __name__ == '__main__':` construction
0 commit comments