1. Joe Amenta
  2. lib3to2
  3. Issues
Issue #14 resolved

remove end-of-line when removing a functools import

Trent Mick
created an issue

http://pythontranslationparty.appspot.com/8004/

{{{ from functools import reduce print(reduce(lambda x, y: x2+y2, list(range(6))), end=' ') }}}

becomes:

{{{ import sys

print reduce(lambda x, y: x2+y2, xrange(6)),; sys.stdout.write(u' ') }}}

if it translated instead to

{{{ import sys print reduce(lambda x, y: x2+y2, xrange(6)),; sys.stdout.write(u' ') }}}

then that would help this translation roundtrip.

Comments (2)

  1. Log in to comment