We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a687ea commit fc84fa8Copy full SHA for fc84fa8
src/past/builtins/misc.py
@@ -103,7 +103,13 @@ def oct(number):
103
return '0' + builtins.oct(number)[2:]
104
105
raw_input = input
106
- from importlib import reload
+
107
+ try:
108
+ from importlib import reload
109
+ except ImportError:
110
+ # for python2, python3 <= 3.4
111
+ from imp import reload
112
113
unicode = str
114
unichr = chr
115
xrange = range
0 commit comments