Update docs/codeql/codeql-language-guides/using-api-graphs-in-python.rst

Co-authored-by: Taus <tausbn@github.com>
This commit is contained in:
yoff
2023-02-27 14:53:31 +01:00
committed by GitHub
parent 1447c2348a
commit 335be21943

View File

@@ -98,7 +98,7 @@ local flow. To get just the *calls* to ``re.compile``, you can use ``asSource``
``API::CallNode``, which deserves a small description of its own.
``API::CallNode``s are not ``API::Node``s. Instead they are ``DataFlow::Node``s with some convenience
predicates that allows you to recover ``API::Node``s for the return value as well as for parameters
predicates that allows you to recover ``API::Node``s for the return value as well as for arguments
to the call. This enables you to constrain the call in various ways using the API graph. The following
snippet finds all calls to ``re.compile`` where the ``pattern`` argument comes from parsing a command
line argument using the ``argparse`` library.