And it will stop working in Python 3.8 according to the warning.
cmp = lambda a, b: (a > b) - (a < b)
array_tobytes = array.array.tobytes
+ from collections import abc
else:
text_type = unicode
cmp = cmp
array_tobytes = array.array.tostring
-
+ import collections as abc
number_types = integer_types + (float,)
import os
import threading
-from collections import MutableMapping
from itertools import chain
-from babel._compat import pickle, string_types
+from babel._compat import pickle, string_types, abc
_cache = {}
return data
-class LocaleDataDict(MutableMapping):
+class LocaleDataDict(abc.MutableMapping):
"""Dictionary wrapper that automatically resolves aliases to the actual
values.
"""