Return PyString, not PyBytes, for a bytes array.
Clean up trailing whitespace.
This commit is contained in:
parent
b0efee2669
commit
82c0dfa3bd
|
@ -952,7 +952,7 @@ FromObj(PyObject* tkapp, Tcl_Obj *value)
|
||||||
if (value->typePtr == app->ByteArrayType) {
|
if (value->typePtr == app->ByteArrayType) {
|
||||||
int size;
|
int size;
|
||||||
char *data = (char*)Tcl_GetByteArrayFromObj(value, &size);
|
char *data = (char*)Tcl_GetByteArrayFromObj(value, &size);
|
||||||
return PyBytes_FromStringAndSize(data, size);
|
return PyString_FromStringAndSize(data, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value->typePtr == app->DoubleType) {
|
if (value->typePtr == app->DoubleType) {
|
||||||
|
|
Loading…
Reference in New Issue