We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebda314 commit 7eb39e8Copy full SHA for 7eb39e8
terminal/terminal.py
@@ -152,7 +152,6 @@
152
from datetime import datetime, timedelta
153
from functools import partial
154
from collections import defaultdict
155
-from itertools import imap, izip
156
try:
157
from collections import OrderedDict
158
except ImportError: # Python <2.7 didn't have OrderedDict in collections
@@ -165,6 +164,11 @@
165
164
logging.error(
166
"...or download it from http://pypi.python.org/pypi/ordereddict")
167
sys.exit(1)
+try:
168
+ from itertools import imap, izip
169
+ pass
170
+except ImportError: # Python 3 doesn't have imap or izip in itertool
171
+ imap, izip = map, zip
172
173
xrange = xrange
174
except NameError: # Python 3 doesn't have xrange()
0 commit comments