Skip to content

Commit 3f3b0e5

Browse files
authored
Merge pull request github#2013 from RasmusWL/python-random-bag
Python: small improvements
2 parents af1bfb2 + 752615f commit 3f3b0e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/src/semmle/python/Exprs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ class Name extends Name_ {
671671
v = this.getVariable()
672672
}
673673

674-
/** Whether this expression is a definition */
674+
/** Whether this expression is a deletion */
675675
predicate isDeletion() {
676676
py_expr_contexts(_, 2, this)
677677
}

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ module ClassValue {
572572

573573
/** Get the `ClassValue` for the `float` class. */
574574
ClassValue float_() {
575-
result = TBuiltinClassObject(Builtin::builtin("float"))
575+
result = TBuiltinClassObject(Builtin::special("float"))
576576
}
577577

578578
/** Get the `ClassValue` for the `bytes` class (also called `str` in Python 2). */

0 commit comments

Comments
 (0)