Index: Lib/lib2to3/tests/test_fixers.py =================================================================== --- Lib/lib2to3/tests/test_fixers.py (revision 70188) +++ Lib/lib2to3/tests/test_fixers.py (working copy) @@ -2966,6 +2966,10 @@ a = """bytes""" self.check(b, a) + b = """types.StringTypes""" + a = """(str, bytes)""" + self.check(b, a) + b = """types.DictType""" a = """dict""" self.check(b, a) Index: Lib/lib2to3/fixes/fix_types.py =================================================================== --- Lib/lib2to3/fixes/fix_types.py (revision 70188) +++ Lib/lib2to3/fixes/fix_types.py (working copy) @@ -42,7 +42,7 @@ 'NotImplementedType' : 'type(NotImplemented)', 'SliceType' : 'slice', 'StringType': 'bytes', # XXX ? - 'StringTypes' : 'str', # XXX ? + 'StringTypes' : '(str, bytes)', # XXX ? 'TupleType': 'tuple', 'TypeType' : 'type', 'UnicodeType': 'str',