mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
7b2f2e74ad
commit
2b281cc35e
180 changed files with 421 additions and 559 deletions
|
@ -6,7 +6,6 @@ from django.core.paginator import (
|
|||
UnorderedObjectListWarning,
|
||||
)
|
||||
from django.test import TestCase
|
||||
from django.utils import six
|
||||
|
||||
from .custom import ValidAdjacentNumsPaginator
|
||||
from .models import Article
|
||||
|
@ -240,7 +239,7 @@ class PaginationTests(unittest.TestCase):
|
|||
"""
|
||||
Paginator.page_range should be an iterator.
|
||||
"""
|
||||
self.assertIsInstance(Paginator([1, 2, 3], 2).page_range, type(six.moves.range(0)))
|
||||
self.assertIsInstance(Paginator([1, 2, 3], 2).page_range, type(range(0)))
|
||||
|
||||
|
||||
class ModelPaginationTests(TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue