File tree Expand file tree Collapse file tree
python/ql/test/library-tests/frameworks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44posix = PosixPath ("posix/filepath" )
55windows = WindowsPath ("windows/filepath" )
66
7- p .chmod (0o777 ) # $getAPathArgument=p
8- posix .chmod (0o777 ) # $getAPathArgument=posix
9- windows .chmod (0o777 ) # $getAPathArgument=windows
7+ p .chmod (0o777 ) # $ getAPathArgument=p
8+ posix .chmod (0o777 ) # $ getAPathArgument=posix
9+ windows .chmod (0o777 ) # $ getAPathArgument=windows
1010
11- with p .open () as f : # $getAPathArgument=p
11+ with p .open () as f : # $ getAPathArgument=p
1212 f .read ()
1313
14- p .write_bytes (b"hello" ) # $getAPathArgument=p
14+ p .write_bytes (b"hello" ) # $ getAPathArgument=p
1515
1616name = windows .parent .name
1717o = open
18- o (name ) # $getAPathArgument=name
18+ o (name ) # $ getAPathArgument=name
1919
2020wb = p .write_bytes
21- wb (b"hello" ) # $getAPathArgument=p
21+ wb (b"hello" ) # $ getAPathArgument=p
Original file line number Diff line number Diff line change 11import builtins
22import io
33
4- open ("filepath" ) # $getAPathArgument="filepath"
5- open (file = "filepath" ) # $getAPathArgument="filepath"
4+ open ("filepath" ) # $ getAPathArgument="filepath"
5+ open (file = "filepath" ) # $ getAPathArgument="filepath"
66
77o = open
88
9- o ("filepath" ) # $getAPathArgument="filepath"
10- o (file = "filepath" ) # $getAPathArgument="filepath"
9+ o ("filepath" ) # $ getAPathArgument="filepath"
10+ o (file = "filepath" ) # $ getAPathArgument="filepath"
1111
1212
13- builtins .open ("filepath" ) # $getAPathArgument="filepath"
14- builtins .open (file = "filepath" ) # $getAPathArgument="filepath"
13+ builtins .open ("filepath" ) # $ getAPathArgument="filepath"
14+ builtins .open (file = "filepath" ) # $ getAPathArgument="filepath"
1515
1616
17- io .open ("filepath" ) # $getAPathArgument="filepath"
18- io .open (file = "filepath" ) # $getAPathArgument="filepath"
17+ io .open ("filepath" ) # $ getAPathArgument="filepath"
18+ io .open (file = "filepath" ) # $ getAPathArgument="filepath"
You can’t perform that action at this time.
0 commit comments