cff1b4f
Index: lib2to3/tests/test_fixers.py
cff1b4f
===================================================================
cff1b4f
--- lib2to3/tests/test_fixers.py	(revision 82529)
cff1b4f
+++ lib2to3/tests/test_fixers.py	(revision 82530)
cff1b4f
@@ -3670,7 +3670,11 @@
cff1b4f
         a = "from itertools import bar, filterfalse, foo"
cff1b4f
         self.check(b, a)
cff1b4f
 
cff1b4f
+    def test_import_star(self):
cff1b4f
+        s = "from itertools import *"
cff1b4f
+        self.unchanged(s)
cff1b4f
 
cff1b4f
+
cff1b4f
     def test_unchanged(self):
cff1b4f
         s = "from itertools import foo"
cff1b4f
         self.unchanged(s)
cff1b4f
Index: lib2to3/fixes/fix_itertools_imports.py
cff1b4f
===================================================================
cff1b4f
--- lib2to3/fixes/fix_itertools_imports.py	(revision 82529)
cff1b4f
+++ lib2to3/fixes/fix_itertools_imports.py	(revision 82530)
cff1b4f
@@ -20,6 +20,9 @@
cff1b4f
             if child.type == token.NAME:
cff1b4f
                 member = child.value
cff1b4f
                 name_node = child
cff1b4f
+            elif child.type == token.STAR:
cff1b4f
+                # Just leave the import as is.
cff1b4f
+                return
cff1b4f
             else:
cff1b4f
                 assert child.type == syms.import_as_name
cff1b4f
                 name_node = child.children[0]