Diff of /Mac/Modules/cf/_CFmodule.c [c840c5] .. [ca568f] Maximize Restore

Repo status: analyzing...

  Switch to unified view

a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c
...
...
1816
1816
1817
    if (v == Py_None) { *p_itself = NULL; return 1; }
1817
    if (v == Py_None) { *p_itself = NULL; return 1; }
1818
    if (PyString_Check(v)) {
1818
    if (PyString_Check(v)) {
1819
        char *cStr;
1819
        char *cStr;
1820
        if (!PyArg_Parse(v, "es", "ascii", &cStr))
1820
        if (!PyArg_Parse(v, "es", "ascii", &cStr))
1821
            return NULL;
1821
            return 0;
1822
        *p_itself = CFStringCreateWithCString((CFAllocatorRef)NULL, cStr, kCFStringEncodingASCII);
1822
        *p_itself = CFStringCreateWithCString((CFAllocatorRef)NULL, cStr, kCFStringEncodingASCII);
1823
        return 1;
1823
        return 1;
1824
    }
1824
    }
1825
    if (PyUnicode_Check(v)) {
1825
    if (PyUnicode_Check(v)) {
1826
        /* We use the CF types here, if Python was configured differently that will give an error */
1826
        /* We use the CF types here, if Python was configured differently that will give an error */