1
0
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:
Raymond Hettinger
2018-02-05 08:42:47 -08:00
committed by Tim Graham
parent 8b21878357
commit aba9763b51
5 changed files with 11 additions and 10 deletions

View File

@@ -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