Skip to content

Commit

Permalink
Python: codecs.open
Browse files Browse the repository at this point in the history
  • Loading branch information
yoff committed Jun 25, 2024
1 parent bdc4808 commit eb32cbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/ql/lib/semmle/python/frameworks/Stdlib.qll
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,9 @@ module StdlibPrivate {
or
// io.open is a special case, since it is an alias for the builtin `open`
result = API::moduleImport("io").getMember("open")
or
// similarly, coecs.open calls the builtin `open`: https://github.com/python/cpython/blob/3.12/Lib/codecs.py#L918
result = API::moduleImport("codecs").getMember("open")
}

/**
Expand Down

0 comments on commit eb32cbe

Please sign in to comment.