Skip to content

Commit 6a3aed3

Browse files
committed
Python self -> range
1 parent 352418c commit 6a3aed3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

python/ql/src/experimental/semmle/python/Concepts.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ private import experimental.dataflow.RemoteFlowSources
1717
* extend `SystemCommandExecution::Range` instead.
1818
*/
1919
class SystemCommandExecution extends DataFlow::Node {
20-
SystemCommandExecution::Range self;
20+
SystemCommandExecution::Range range;
2121

22-
SystemCommandExecution() { this = self }
22+
SystemCommandExecution() { this = range }
2323

2424
/** Gets the argument that specifies the command to be executed. */
25-
DataFlow::Node getCommand() { result = self.getCommand() }
25+
DataFlow::Node getCommand() { result = range.getCommand() }
2626
}
2727

2828
/** Provides a class for modeling new system-command execution APIs. */
@@ -52,21 +52,21 @@ module SystemCommandExecution {
5252
* extend `Decoding::Range` instead.
5353
*/
5454
class Decoding extends DataFlow::Node {
55-
Decoding::Range self;
55+
Decoding::Range range;
5656

57-
Decoding() { this = self }
57+
Decoding() { this = range }
5858

5959
/** Holds if this call is unsafe, e.g. if it may execute arbitrary code. */
60-
predicate unsafe() { self.unsafe() }
60+
predicate unsafe() { range.unsafe() }
6161

6262
/** Gets an input that is decoded by this function. */
63-
DataFlow::Node getAnInput() { result = self.getAnInput() }
63+
DataFlow::Node getAnInput() { result = range.getAnInput() }
6464

6565
/** Gets the output that contains the decoded data produced by this function. */
66-
DataFlow::Node getOutput() { result = self.getOutput() }
66+
DataFlow::Node getOutput() { result = range.getOutput() }
6767

6868
/** Gets an identifier for the format this function decodes from, such as "JSON". */
69-
string getFormat() { result = self.getFormat() }
69+
string getFormat() { result = range.getFormat() }
7070
}
7171

7272
/** Provides a class for modeling new decoding mechanisms. */

0 commit comments

Comments
 (0)