File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
python/ql/test/library-tests/frameworks Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 4
4
posix = PosixPath ("posix/filepath" )
5
5
windows = WindowsPath ("windows/filepath" )
6
6
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
10
10
11
- with p .open () as f : # $getAPathArgument=p
11
+ with p .open () as f : # $ getAPathArgument=p
12
12
f .read ()
13
13
14
- p .write_bytes (b"hello" ) # $getAPathArgument=p
14
+ p .write_bytes (b"hello" ) # $ getAPathArgument=p
15
15
16
16
name = windows .parent .name
17
17
o = open
18
- o (name ) # $getAPathArgument=name
18
+ o (name ) # $ getAPathArgument=name
19
19
20
20
wb = 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 1
1
import builtins
2
2
import io
3
3
4
- open ("filepath" ) # $getAPathArgument="filepath"
5
- open (file = "filepath" ) # $getAPathArgument="filepath"
4
+ open ("filepath" ) # $ getAPathArgument="filepath"
5
+ open (file = "filepath" ) # $ getAPathArgument="filepath"
6
6
7
7
o = open
8
8
9
- o ("filepath" ) # $getAPathArgument="filepath"
10
- o (file = "filepath" ) # $getAPathArgument="filepath"
9
+ o ("filepath" ) # $ getAPathArgument="filepath"
10
+ o (file = "filepath" ) # $ getAPathArgument="filepath"
11
11
12
12
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"
15
15
16
16
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