Skip to content

Commit 1234cb6

Browse files
committed
Python: Incorporates updates from new master
1 parent b7bcf6c commit 1234cb6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class ClassValue extends Value {
427427
or
428428
this.getASuperType() = ClassValue::list()
429429
or
430-
this.getASuperType() = ClassValue::rangeType()
430+
this.getASuperType() = ClassValue::range()
431431
or
432432
this.getASuperType() = ClassValue::bytes()
433433
or
@@ -820,13 +820,6 @@ module ClassValue {
820820
result = TBuiltinClassObject(Builtin::special("complex"))
821821
}
822822

823-
/** The builtin class '(x)range' */
824-
ClassValue rangeType() {
825-
result = TBuiltinClassObject(Builtin::special("xrange"))
826-
or
827-
major_version() = 3 and result = TBuiltinClassObject(Builtin::special("range"))
828-
}
829-
830823
/** Get the `ClassValue` for the `bytes` class (also called `str` in Python 2). */
831824
ClassValue bytes() {
832825
result = TBuiltinClassObject(Builtin::special("bytes"))

0 commit comments

Comments
 (0)