Issue 9245: "from itertools imoprt *" crashes 2to3 (original) (raw)

A related issue:

from itertools import chain, izip, imap

This results in an invalid transformation:

-from itertools import chain, izip, imap +from itertools import chain,

The translated version is an invalid import statement with a ',' at the end of the line.

A workaround for the first issue: use explicit imports. A workaround for this one: use "from itertools import izip, imap, chain".