mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Refs #28814 -- Imported from collections.abc to fix Python 3.7 deprecation warnings.
https://bugs.python.org/issue25988
This commit is contained in:
committed by
Tim Graham
parent
8b21878357
commit
aba9763b51
@@ -1,4 +1,4 @@
|
||||
import collections
|
||||
import collections.abc
|
||||
import warnings
|
||||
from math import ceil
|
||||
|
||||
@@ -127,7 +127,7 @@ class Paginator:
|
||||
QuerySetPaginator = Paginator # For backwards-compatibility.
|
||||
|
||||
|
||||
class Page(collections.Sequence):
|
||||
class Page(collections.abc.Sequence):
|
||||
|
||||
def __init__(self, object_list, number, paginator):
|
||||
self.object_list = object_list
|
||||
|
||||
Reference in New Issue
Block a user