@@ -346,7 +346,7 @@ private module Stdlib {
346346 /** Gets a reference to the `popen2` module (only available in Python 2). */
347347 private DataFlow:: Node popen2 ( DataFlow:: TypeTracker t ) {
348348 t .start ( ) and
349- result = DataFlow:: importModule ( "popen2" )
349+ result = DataFlow:: importNode ( "popen2" )
350350 or
351351 exists ( DataFlow:: TypeTracker t2 | result = popen2 ( t2 ) .track ( t2 , t ) )
352352 }
@@ -364,10 +364,10 @@ private module Stdlib {
364364 "Popen3" , "Popen4" ] and
365365 (
366366 t .start ( ) and
367- result = DataFlow:: importMember ( "popen2" , attr_name )
367+ result = DataFlow:: importNode ( "popen2." + attr_name )
368368 or
369369 t .startInAttr ( attr_name ) and
370- result = DataFlow:: importModule ( "popen2" )
370+ result = DataFlow:: importNode ( "popen2" )
371371 )
372372 or
373373 // Due to bad performance when using normal setup with `popen2_attr(t2, attr_name).track(t2, t)`
@@ -420,7 +420,7 @@ private module Stdlib {
420420 /** Gets a reference to the `platform` module. */
421421 private DataFlow:: Node platform ( DataFlow:: TypeTracker t ) {
422422 t .start ( ) and
423- result = DataFlow:: importModule ( "platform" )
423+ result = DataFlow:: importNode ( "platform" )
424424 or
425425 exists ( DataFlow:: TypeTracker t2 | result = platform ( t2 ) .track ( t2 , t ) )
426426 }
@@ -436,10 +436,10 @@ private module Stdlib {
436436 attr_name in [ "popen" ] and
437437 (
438438 t .start ( ) and
439- result = DataFlow:: importMember ( "platform" , attr_name )
439+ result = DataFlow:: importNode ( "platform." + attr_name )
440440 or
441441 t .startInAttr ( attr_name ) and
442- result = DataFlow:: importModule ( "platform" )
442+ result = DataFlow:: importNode ( "platform" )
443443 )
444444 or
445445 // Due to bad performance when using normal setup with `platform_attr(t2, attr_name).track(t2, t)`
0 commit comments