There was an error while loading. Please reload this page.
1 parent 05bc771 commit dbd3cd0Copy full SHA for dbd3cd0
src/past/builtins/misc.py
@@ -1,6 +1,7 @@
1
from __future__ import unicode_literals
2
3
import inspect
4
+import sys
5
6
from future.utils import PY2, PY3, exec_
7
@@ -43,7 +44,10 @@ def oct(number):
43
44
45
raw_input = input
46
# imp was deprecated in python 3.6
- from importlib import reload
47
+ if sys.version_info >= (3, 6):
48
+ from importlib import reload
49
+ else:
50
+ from imp import reload
51
unicode = str
52
unichr = chr
53
xrange = range
0 commit comments