summaryrefslogtreecommitdiffhomepage
path: root/libs/future/backports/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/future/backports/misc.py')
-rw-r--r--libs/future/backports/misc.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/future/backports/misc.py b/libs/future/backports/misc.py
index ef7520788..098a0667e 100644
--- a/libs/future/backports/misc.py
+++ b/libs/future/backports/misc.py
@@ -16,7 +16,6 @@ from __future__ import absolute_import
import subprocess
from math import ceil as oldceil
-from collections import Mapping, MutableMapping
from operator import itemgetter as _itemgetter, eq as _eq
import sys
@@ -25,7 +24,12 @@ from _weakref import proxy as _proxy
from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
from socket import getaddrinfo, SOCK_STREAM, error, socket
-from future.utils import iteritems, itervalues, PY26, PY3
+from future.utils import iteritems, itervalues, PY2, PY26, PY3
+
+if PY2:
+ from collections import Mapping, MutableMapping
+else:
+ from collections.abc import Mapping, MutableMapping
def ceil(x):