File tree Expand file tree Collapse file tree 12 files changed +37
-578
lines changed
Expand file tree Collapse file tree 12 files changed +37
-578
lines changed Original file line number Diff line number Diff line change 1- semmle-extractor-options: --lang=2 --max-import-depth=3
1+ semmle-extractor-options: --lang=2 --max-import-depth=4
22optimize: true
Original file line number Diff line number Diff line change 1- | six | Module six |
2- | six.moves | Module six.moves |
1+ | six | Package six |
2+ | six.moves | Package six.moves |
3+ | six.moves.http_client | Module httplib |
4+ | six.moves.http_client.HTTPConnection | class HTTPConnection |
35| six.moves.range | builtin-class xrange |
6+ | six.moves.urllib | Package six.moves.urllib |
7+ | six.moves.urllib.parse | Module six.moves.urllib_parse |
8+ | six.moves.urllib.parse.urlsplit | Function urlsplit |
9+ | six.moves.zip | builtin-class itertools.izip |
Original file line number Diff line number Diff line change 1-
21import python
32
43string longname ( Expr e ) {
54 result = e .( Name ) .getId ( )
65 or
7- exists ( Attribute a |
8- a = e |
9- result = longname ( a .getObject ( ) ) + "." + a .getName ( )
10- )
6+ exists ( Attribute a | a = e | result = longname ( a .getObject ( ) ) + "." + a .getName ( ) )
117}
128
13- from Expr e , Object o
14- where e .refersTo ( o ) and e .getLocation ( ) .getFile ( ) .getShortName ( ) = "test.py"
15- select longname ( e ) , o .toString ( )
9+ from Expr e , Value v
10+ where e .pointsTo ( v ) and e .getLocation ( ) .getFile ( ) .getShortName ( ) = "test.py"
11+ select longname ( e ) , v .toString ( )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import six
22
3- #Check that some expected attributes are visible
3+ # Check that some expected attributes are visible -- this is the reason we added stubs in
4+ # the first place! If this works, we're happy!
45six .moves
56six .moves .range
7+ six .moves .zip
8+ six .moves .http_client .HTTPConnection
9+ six .moves .urllib .parse .urlsplit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- semmle-extractor-options: --max-import-depth=3
1+ semmle-extractor-options: --max-import-depth=4
22optimize: true
Original file line number Diff line number Diff line change 1- | six | Module six |
2- | six.moves | Module six.moves |
1+ | six | Package six |
2+ | six.moves | Package six.moves |
3+ | six.moves.http_client | Module http.client |
4+ | six.moves.http_client.HTTPConnection | class HTTPConnection |
35| six.moves.range | builtin-class range |
6+ | six.moves.urllib | Package six.moves.urllib |
7+ | six.moves.urllib.parse | Module six.moves.urllib_parse |
8+ | six.moves.urllib.parse.urlsplit | Function urlsplit |
9+ | six.moves.zip | builtin-class zip |
Original file line number Diff line number Diff line change 1-
21import python
32
43string longname ( Expr e ) {
54 result = e .( Name ) .getId ( )
65 or
7- exists ( Attribute a |
8- a = e |
9- result = longname ( a .getObject ( ) ) + "." + a .getName ( )
10- )
6+ exists ( Attribute a | a = e | result = longname ( a .getObject ( ) ) + "." + a .getName ( ) )
117}
128
13- from Expr e , Object o
14- where e .refersTo ( o ) and e .getLocation ( ) .getFile ( ) .getShortName ( ) = "test.py"
15- select longname ( e ) , o .toString ( )
16-
9+ from Expr e , Value v
10+ where e .pointsTo ( v ) and e .getLocation ( ) .getFile ( ) .getShortName ( ) = "test.py"
11+ select longname ( e ) , v .toString ( )
You can’t perform that action at this time.
0 commit comments