Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96bf3cc

Browse files
committed
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.
1 parent 3d7a90d commit 96bf3cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/plat-mac/ic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _decode_fontrecord(data, key):
6565
return size, face, data[5:5+namelen]
6666

6767
def _decode_boolean(data, key):
68-
return ord(data[0])
68+
return data[0]
6969

7070
def _decode_text(data, key):
7171
return data

Mac/Modules/file/_Filemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ static PyObject *FSSpec_as_pathname(FSSpecObject *_self, PyObject *_args)
13121312
PyMac_Error(err);
13131313
return NULL;
13141314
}
1315-
_res = PyString_FromString(strbuf);
1315+
_res = PyUnicode_FromString(strbuf);
13161316
return _res;
13171317

13181318
}

0 commit comments

Comments
 (0)