Skip to content

Commit 47686a6

Browse files
committed
Python: Disregard all files matching .py%
1 parent 8d30ee5 commit 47686a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/Files.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class File extends Container {
7979
exists(this.getRelativePath()) and
8080
(
8181
// The file doesn't have the extension `.py` but still contains Python statements
82-
not this.getExtension() = "py" and
82+
not this.getExtension().matches("py%") and
8383
exists(Stmt s | s.getLocation().getFile() = this)
8484
or
8585
// The file contains the usual `if __name__ == '__main__':` construction

0 commit comments

Comments
 (0)