mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
parent
f6acd1d271
commit
7b2f2e74ad
213 changed files with 574 additions and 763 deletions
|
@ -260,7 +260,7 @@ class QuerySet(object):
|
|||
"""
|
||||
Retrieves an item or slice from the set of results.
|
||||
"""
|
||||
if not isinstance(k, (slice,) + six.integer_types):
|
||||
if not isinstance(k, (int, slice)):
|
||||
raise TypeError
|
||||
assert ((not isinstance(k, slice) and (k >= 0)) or
|
||||
(isinstance(k, slice) and (k.start is None or k.start >= 0) and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue