Skip to content

Commit cac6c4a

Browse files
committed
Python: Add deprecation notice to mode_from_mode_object
1 parent 2942a11 commit cac6c4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/ql/src/semmle/python/regex.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ private DataFlow::Node re_flag_tracker(string flag_name) {
9797
/** Gets a regular expression mode flag associated with the given data flow node. */
9898
string mode_from_node(DataFlow::Node node) { node = re_flag_tracker(result) }
9999

100+
/**
101+
* DEPRECATED 2021-02-24 -- use `mode_from_node` instead.
102+
*
103+
* Gets a regular expression mode flag associated with the given value.
104+
*/
100105
deprecated string mode_from_mode_object(Value obj) {
101106
(
102107
result = "DEBUG" or

0 commit comments

Comments
 (0)