From aba9763b5117494ca1ef1e420397e3845ad5b262 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 5 Feb 2018 08:42:47 -0800 Subject: Refs #28814 -- Imported from collections.abc to fix Python 3.7 deprecation warnings. https://bugs.python.org/issue25988 --- django/db/models/sql/query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'django/db/models/sql') diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index b35b42f943..c8b557103f 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -6,7 +6,8 @@ themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get the information it needs. """ -from collections import Counter, Iterator, Mapping, OrderedDict, namedtuple +from collections import Counter, OrderedDict, namedtuple +from collections.abc import Iterator, Mapping from itertools import chain, count, product from string import ascii_uppercase -- cgit v1.3