Index: Lib/lib2to3/tests/test_fixers.py =================================================================== --- Lib/lib2to3/tests/test_fixers.py (Revision 70243) +++ Lib/lib2to3/tests/test_fixers.py (Arbeitskopie) @@ -2963,9 +2963,13 @@ def test_basic_types_convert(self): b = """types.StringType""" - a = """bytes""" + a = """str""" self.check(b, a) + b = """types.StringTypes""" + a = """(str,)""" + 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 70243) +++ Lib/lib2to3/fixes/fix_types.py (Arbeitskopie) @@ -41,8 +41,8 @@ 'NoneType': 'type(None)', 'NotImplementedType' : 'type(NotImplemented)', 'SliceType' : 'slice', - 'StringType': 'bytes', # XXX ? - 'StringTypes' : 'str', # XXX ? + 'StringType': 'str', # XXX ? + 'StringTypes' : '(str,)', # XXX ? 'TupleType': 'tuple', 'TypeType' : 'type', 'UnicodeType': 'str',