Skip to content

Commit 57beeaa

Browse files
authored
Python: Fix name clash in CopyFile.qll
1 parent e137115 commit 57beeaa

File tree

1 file changed

+3
-6
lines changed
  • python/ql/src/experimental/semmle/python/frameworks

1 file changed

+3
-6
lines changed

python/ql/src/experimental/semmle/python/frameworks/CopyFile.qll

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ private import python
22
private import experimental.semmle.python.Concepts
33
private import semmle.python.dataflow.new.DataFlow
44
private 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-

0 commit comments

Comments
 (0)