File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
python/ql/test/library-tests/frameworks/stdlib Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
import builtins
2
2
import io
3
+ import os
3
4
4
5
open ("filepath" ) # $ getAPathArgument="filepath"
5
6
open (file = "filepath" ) # $ getAPathArgument="filepath"
@@ -28,13 +29,14 @@ def through_function(open_file):
28
29
29
30
through_function (f )
30
31
31
- from os import path
32
- path .exists ("filepath" ) # $ getAPathArgument="filepath"
33
- path .isfile ("filepath" ) # $ getAPathArgument="filepath"
34
- path .isdir ("filepath" ) # $ getAPathArgument="filepath"
35
- path .islink ("filepath" ) # $ getAPathArgument="filepath"
36
- path .ismount ("filepath" ) # $ getAPathArgument="filepath"
32
+ # os. path
33
+ os . path .exists ("filepath" ) # $ getAPathArgument="filepath"
34
+ os . path .isfile ("filepath" ) # $ getAPathArgument="filepath"
35
+ os . path .isdir ("filepath" ) # $ getAPathArgument="filepath"
36
+ os . path .islink ("filepath" ) # $ getAPathArgument="filepath"
37
+ os . path .ismount ("filepath" ) # $ getAPathArgument="filepath"
37
38
39
+ # actual os.path implementations
38
40
import posixpath
39
41
import ntpath
40
42
import genericpath
@@ -43,7 +45,6 @@ def through_function(open_file):
43
45
ntpath .exists ("filepath" ) # $ getAPathArgument="filepath"
44
46
genericpath .exists ("filepath" ) # $ getAPathArgument="filepath"
45
47
46
- import os
47
-
48
+ # os
48
49
os .stat ("filepath" ) # $ getAPathArgument="filepath"
49
50
os .stat (path = "filepath" ) # $ getAPathArgument="filepath"
You can’t perform that action at this time.
0 commit comments