Skip to content

Commit 9af2ab8

Browse files
Cleanups
1 parent 8bdf680 commit 9af2ab8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/ql/src/Functions/IncorrectRaiseInSpecialMethod.ql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ private predicate arithmeticMethod(string name) {
3030
name =
3131
[
3232
"__add__", "__sub__", "__or__", "__xor__", "__rshift__", "__pow__", "__mul__", "__neg__",
33-
"__radd__", "__rsub__", "__rdiv__", "__rfloordiv__", "__div__", "__rdiv__", "__rlshift__",
34-
"__rand__", "__ror__", "__rxor__", "__rrshift__", "__rpow__", "__rmul__", "__truediv__",
35-
"__rtruediv__", "__pos__", "__iadd__", "__isub__", "__idiv__", "__ifloordiv__", "__idiv__",
36-
"__ilshift__", "__iand__", "__ior__", "__ixor__", "__irshift__", "__abs__", "__ipow__",
37-
"__imul__", "__itruediv__", "__floordiv__", "__div__", "__divmod__", "__lshift__", "__and__"
33+
"__radd__", "__rsub__", "__rdiv__", "__rfloordiv__", "__rlshift__", "__rand__", "__ror__",
34+
"__rxor__", "__rrshift__", "__rpow__", "__rmul__", "__truediv__", "__rtruediv__", "__pos__",
35+
"__iadd__", "__isub__", "__idiv__", "__ifloordiv__", "__idiv__", "__ilshift__", "__iand__",
36+
"__ior__", "__ixor__", "__irshift__", "__abs__", "__ipow__", "__imul__", "__itruediv__",
37+
"__floordiv__", "__div__", "__divmod__", "__lshift__", "__and__"
3838
]
3939
}
4040

@@ -152,7 +152,7 @@ predicate alwaysRaises(Function f, Expr exec) {
152152
not exists(f.getANormalExit())
153153
}
154154

155-
/** Holds if `f` directly raises `expr` using a `raise` statement. */
155+
/** Holds if `f` directly raises `exec` using a `raise` statement. */
156156
predicate directlyRaises(Function f, Expr exec) {
157157
exists(Raise r |
158158
r.getScope() = f and

0 commit comments

Comments
 (0)