File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import unicode_literals
2
- import sys
2
+
3
3
import inspect
4
- from collections import Mapping
5
4
6
5
from future .utils import PY3 , exec_
7
6
8
-
9
7
if PY3 :
10
8
import builtins
9
+ from collections .abc import Mapping
11
10
12
11
def apply (f , * args , ** kw ):
13
12
return f (* args , ** kw )
@@ -44,6 +43,7 @@ def oct(number):
44
43
xrange = range
45
44
else :
46
45
import __builtin__
46
+ from collections import Mapping
47
47
apply = __builtin__ .apply
48
48
chr = __builtin__ .chr
49
49
cmp = __builtin__ .cmp
Original file line number Diff line number Diff line change 2
2
Pure-Python implementation of a Python 2-like str object for Python 3.
3
3
"""
4
4
5
- from collections import Iterable
6
5
from numbers import Integral
7
6
8
- from past .utils import PY2 , with_metaclass
9
-
7
+ from past .utils import with_metaclass
10
8
11
9
_builtin_bytes = bytes
12
10
You can’t perform that action at this time.
0 commit comments