]> granicus.if.org Git - python/commitdiff
remove some PyBytes_* aliases that are not in 3.x
authorBenjamin Peterson <benjamin@python.org>
Mon, 16 Feb 2009 21:09:09 +0000 (21:09 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 16 Feb 2009 21:09:09 +0000 (21:09 +0000)
Include/bytesobject.h
Misc/NEWS

index a50792c35bd92ffe39455bb89e8bed1d184ad131..1083da9c8261082c2110af4f1d9ddbc221857425 100644 (file)
 #define _PyBytes_FormatLong _PyString_FormatLong
 #define PyBytes_DecodeEscape PyString_DecodeEscape
 #define _PyBytes_Join _PyString_Join
-#define PyBytes_Decode PyString_Decode
-#define PyBytes_Encode PyString_Encode
-#define PyBytes_AsEncodedObject PyString_AsEncodedObject
-#define PyBytes_AsEncodedString PyString_AsEncodedString
-#define PyBytes_AsDecodedObject PyString_AsDecodedObject
-#define PyBytes_AsDecodedString PyString_AsDecodedString
 #define PyBytes_AsStringAndSize PyString_AsStringAndSize
 #define _PyBytes_InsertThousandsGrouping _PyString_InsertThousandsGrouping
index 142026cd3a8c26b7e2f452345a67e43e2d8f42ca..3e37c28287b68b3f2ed0d35ec7b46bac6d838093 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -506,6 +506,8 @@ Build
 C-API
 -----
 
+- Some PyBytes_* aliases have been removed because they don't exist in 3.x.
+
 - Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError
   for negative arguments.  Previously, it raised TypeError.