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
22private import experimental.semmle.python.Concepts
33private import semmle.python.dataflow.new.DataFlow
44private import semmle.python.ApiGraphs
5-
6- private module CopyFile {
7-
5+
6+ private module CopyFileImpl {
87 /**
98 * The `shutil` module provides methods to copy or move files.
109 * See:
@@ -28,10 +27,9 @@ private module CopyFile {
2827
2928 override DataFlow:: Node getfsrcArgument ( ) { none ( ) }
3029 }
31-
30+
3231 // TODO: once we have flow summaries, model `shutil.copyfileobj` which copies the content between its' file-like arguments.
3332 // See https://docs.python.org/3/library/shutil.html#shutil.copyfileobj
34-
3533 private class CopyFileobj extends DataFlow:: CallCfgNode , CopyFile:: Range {
3634 CopyFileobj ( ) { this = API:: moduleImport ( "shutil" ) .getMember ( "copyfileobj" ) .getACall ( ) }
3735
@@ -42,4 +40,3 @@ private module CopyFile {
4240 override DataFlow:: Node getAPathArgument ( ) { none ( ) }
4341 }
4442}
45-
You can’t perform that action at this time.
0 commit comments