Skip to content

Commit 95dbe13

Browse files
authored
Merge pull request #7133 from RasmusWL/minor-3.10-fix
Python: Minor additions for 3.10
2 parents 7c3b68b + cfdfcaa commit 95dbe13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/lib/semmle/python/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ module API {
391391
or
392392
// Python 3 only
393393
result in [
394-
"ascii", "breakpoint", "bytes", "exec",
394+
"ascii", "breakpoint", "bytes", "exec", "aiter", "anext",
395395
// Exceptions
396396
"BlockingIOError", "BrokenPipeError", "ChildProcessError", "ConnectionAbortedError",
397397
"ConnectionError", "ConnectionRefusedError", "ConnectionResetError", "FileExistsError",

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ private module StdlibPrivate {
14521452
"is_symlink", "is_socket", "is_fifo", "is_block_device", "is_char_device", "iter_dir",
14531453
"lchmod", "lstat", "mkdir", "open", "owner", "read_bytes", "read_text", "readlink",
14541454
"rename", "replace", "resolve", "rglob", "rmdir", "samefile", "symlink_to", "touch",
1455-
"unlink", "link_to", "write_bytes", "write_text"
1455+
"unlink", "link_to", "write_bytes", "write_text", "hardlink_to"
14561456
] and
14571457
pathlibPath().flowsTo(fileAccess.getObject()) and
14581458
fileAccess.(DataFlow::LocalSourceNode).flowsTo(this.getFunction())

0 commit comments

Comments
 (0)