Return PyString, not PyBytes, for a bytes array.

Clean up trailing whitespace.
This commit is contained in:
Guido van Rossum 2007-11-21 20:09:18 +00:00
parent b0efee2669
commit 82c0dfa3bd
1 changed files with 25 additions and 25 deletions

View File

@ -952,7 +952,7 @@ FromObj(PyObject* tkapp, Tcl_Obj *value)
if (value->typePtr == app->ByteArrayType) {
int size;
char *data = (char*)Tcl_GetByteArrayFromObj(value, &size);
return PyBytes_FromStringAndSize(data, size);
return PyString_FromStringAndSize(data, size);
}
if (value->typePtr == app->DoubleType) {