File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def isclass(object):
111111
112112if _PY3 :
113113 import codecs
114-
114+ imap = map
115115 STRING_TYPES = bytes , str
116116
117117 def _escape_strings (val ):
@@ -145,6 +145,8 @@ def _escape_strings(val):
145145else :
146146 STRING_TYPES = bytes , str , unicode
147147
148+ from itertools import imap
149+
148150 def _escape_strings (val ):
149151 """In py2 bytes and str are the same type, so return if it's a bytes
150152 object, return it unchanged if it is a full ascii string,
@@ -213,4 +215,4 @@ def _is_unittest_unexpected_success_a_failure():
213215 Changed in version 3.4: Returns False if there were any
214216 unexpectedSuccesses from tests marked with the expectedFailure() decorator.
215217 """
216- return sys .version_info >= (3 , 4 )
218+ return sys .version_info >= (3 , 4 )
Original file line number Diff line number Diff line change 22import inspect
33from collections import namedtuple
44from operator import attrgetter
5- from itertools import imap
5+ from . compat import imap
66
77def alias (name ):
88 return property (attrgetter (name ), doc = 'alias for ' + name )
You can’t perform that action at this time.
0 commit comments