Get a bunch of tests working on Mac OS. I suspect that a bunch of the
ord()s in Lib/plat-mac/ic.py need to be removed.
This commit is contained in:
parent
3d7a90dea1
commit
96bf3cc3fc
|
@ -65,7 +65,7 @@ def _decode_fontrecord(data, key):
|
|||
return size, face, data[5:5+namelen]
|
||||
|
||||
def _decode_boolean(data, key):
|
||||
return ord(data[0])
|
||||
return data[0]
|
||||
|
||||
def _decode_text(data, key):
|
||||
return data
|
||||
|
|
|
@ -1312,7 +1312,7 @@ static PyObject *FSSpec_as_pathname(FSSpecObject *_self, PyObject *_args)
|
|||
PyMac_Error(err);
|
||||
return NULL;
|
||||
}
|
||||
_res = PyString_FromString(strbuf);
|
||||
_res = PyUnicode_FromString(strbuf);
|
||||
return _res;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue