File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
python/ql/src/experimental/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ private import python
2
2
private import experimental.semmle.python.Concepts
3
3
private import semmle.python.dataflow.new.DataFlow
4
4
private import semmle.python.ApiGraphs
5
-
6
- private module CopyFile {
7
-
5
+
6
+ private module CopyFileImpl {
8
7
/**
9
8
* The `shutil` module provides methods to copy or move files.
10
9
* See:
@@ -28,10 +27,9 @@ private module CopyFile {
28
27
29
28
override DataFlow:: Node getfsrcArgument ( ) { none ( ) }
30
29
}
31
-
30
+
32
31
// TODO: once we have flow summaries, model `shutil.copyfileobj` which copies the content between its' file-like arguments.
33
32
// See https://docs.python.org/3/library/shutil.html#shutil.copyfileobj
34
-
35
33
private class CopyFileobj extends DataFlow:: CallCfgNode , CopyFile:: Range {
36
34
CopyFileobj ( ) { this = API:: moduleImport ( "shutil" ) .getMember ( "copyfileobj" ) .getACall ( ) }
37
35
@@ -42,4 +40,3 @@ private module CopyFile {
42
40
override DataFlow:: Node getAPathArgument ( ) { none ( ) }
43
41
}
44
42
}
45
-
You can’t perform that action at this time.
0 commit comments