equal
deleted
inserted
replaced
335 Python 3 compatibility as shelx.split() don't accept bytes on Python 3. |
335 Python 3 compatibility as shelx.split() don't accept bytes on Python 3. |
336 """ |
336 """ |
337 ret = shlex.split(s.decode('latin-1'), comments, posix) |
337 ret = shlex.split(s.decode('latin-1'), comments, posix) |
338 return [a.encode('latin-1') for a in ret] |
338 return [a.encode('latin-1') for a in ret] |
339 |
339 |
|
340 itervalues = lambda x: x.values() |
340 |
341 |
341 else: |
342 else: |
342 import cStringIO |
343 import cStringIO |
343 |
344 |
344 xrange = xrange |
345 xrange = xrange |
411 maplist = map |
412 maplist = map |
412 rangelist = range |
413 rangelist = range |
413 ziplist = zip |
414 ziplist = zip |
414 rawinput = raw_input |
415 rawinput = raw_input |
415 getargspec = inspect.getargspec |
416 getargspec = inspect.getargspec |
|
417 itervalues = lambda x: x.itervalues() |
416 |
418 |
417 isjython = sysplatform.startswith(b'java') |
419 isjython = sysplatform.startswith(b'java') |
418 |
420 |
419 isdarwin = sysplatform.startswith(b'darwin') |
421 isdarwin = sysplatform.startswith(b'darwin') |
420 islinux = sysplatform.startswith(b'linux') |
422 islinux = sysplatform.startswith(b'linux') |