diff Python/getargs.c @ 47300:96b34263e448

Renamed PyBytes to PyByteArray
author Christian Heimes <christian@cheimes.de>
date Mon, 26 May 2008 13:22:05 +0000
parents 0e67e21a4113
children 23ab586c427a
line wrap: on
line diff
--- a/Python/getargs.c	Mon May 26 13:16:12 2008 +0000
+++ b/Python/getargs.c	Mon May 26 13:22:05 2008 +0000
@@ -971,7 +971,7 @@
 
 		/* Encode object */
 		if (!recode_strings &&
-                    (PyString_Check(arg) || PyBytes_Check(arg))) {
+                    (PyString_Check(arg) || PyByteArray_Check(arg))) {
 			s = arg;
 			Py_INCREF(s);
                         if (PyObject_AsCharBuffer(s, &ptr, &size) < 0)
@@ -1123,9 +1123,9 @@
 		break;
 	}
 
-	case 'Y': { /* PyBytes object */
+	case 'Y': { /* PyByteArray object */
 		PyObject **p = va_arg(*p_va, PyObject **);
-		if (PyBytes_Check(arg))
+		if (PyByteArray_Check(arg))
 			*p = arg;
 		else
 			return converterr("buffer", arg, msgbuf, bufsize);