File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
python/ql/src/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -966,21 +966,8 @@ private module Stdlib {
966
966
result .( DataFlow:: CallCfgNode ) .getFunction ( ) = returnsPath
967
967
)
968
968
or
969
- // Due to bad performance when using normal setup with `path(t2).track(t2, t)`
970
- // we have inlined that code and forced a join
971
- exists ( DataFlow:: TypeTracker t2 |
972
- exists ( DataFlow:: StepSummary summary |
973
- pathlibPath_first_join ( t2 , result , summary ) and
974
- t = t2 .append ( summary )
975
- )
976
- )
977
- }
978
-
979
- pragma [ nomagic]
980
- private predicate pathlibPath_first_join (
981
- DataFlow:: TypeTracker t2 , DataFlow:: Node res , DataFlow:: StepSummary summary
982
- ) {
983
- DataFlow:: StepSummary:: step ( pathlibPath ( t2 ) , res , summary )
969
+ // Track further
970
+ exists ( DataFlow:: TypeTracker t2 | result = pathlibPath ( t2 ) .track ( t2 , t ) )
984
971
}
985
972
986
973
/** Gets a reference to a `pathlib.Path` object. */
You can’t perform that action at this time.
0 commit comments