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:
Neal Norwitz 2007-10-27 06:04:52 +00:00
parent 3d7a90dea1
commit 96bf3cc3fc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}