Skip to content

Commit

Permalink
fix import reload for python<3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Curtis committed Sep 16, 2020
1 parent 05bc771 commit dbd3cd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/past/builtins/misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import unicode_literals

import inspect
import sys

from future.utils import PY2, PY3, exec_

Expand Down Expand Up @@ -43,7 +44,10 @@ def oct(number):

raw_input = input
# imp was deprecated in python 3.6
from importlib import reload
if sys.version_info >= (3, 6):
from importlib import reload
else:
from imp import reload
unicode = str
unichr = chr
xrange = range
Expand Down

0 comments on commit dbd3cd0

Please sign in to comment.