Skip to content
Snippets Groups Projects
Commit 3b7ce544 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'py37-deprecation' into 'master'

Fix Py3.7 deprecation

See merge request inducer/pytools!20
parents a0ea2158 70c2c517
No related branches found
No related tags found
1 merge request!20Fix Py3.7 deprecation
Pipeline #14734 failed
......@@ -30,8 +30,12 @@ THE SOFTWARE.
import logging
logger = logging.getLogger(__name__)
try:
import collections.abc as abc
except ImportError:
# Python 2
import collections as abc
import collections
import functools
import six
import sys
......@@ -362,7 +366,7 @@ class _LinkedList(object):
node[1] = node[2] = None
class _LRUCache(collections.MutableMapping):
class _LRUCache(abc.MutableMapping):
"""A mapping that keeps at most *maxsize* items with an LRU replacement policy.
"""
def __init__(self, maxsize):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment