Skip to content

Commit bec33b7

Browse files
committed
Python: Use range instead of self for ::Range pattern
Following the suggestions from #4357
1 parent 8857579 commit bec33b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ private import experimental.semmle.python.Frameworks
1616
* extend `SystemCommandExecution::Range` instead.
1717
*/
1818
class SystemCommandExecution extends DataFlow::Node {
19-
SystemCommandExecution::Range self;
19+
SystemCommandExecution::Range range;
2020

21-
SystemCommandExecution() { this = self }
21+
SystemCommandExecution() { this = range }
2222

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

2727
/** Provides a class for modeling new system-command execution APIs. */

0 commit comments

Comments
 (0)