Port GetInteger and GetString to 3k.

This commit is contained in:
Martin v. Löwis 2008-06-02 11:32:23 +00:00
parent 0f5998911c
commit 704d8b154b
1 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ record_getinteger(msiobj* record, PyObject* args)
PyErr_SetString(MSIError, "could not convert record field to integer");
return NULL;
}
return PyInt_FromLong((long) status);
return PyLong_FromLong((long) status);
}
static PyObject*
@ -375,7 +375,7 @@ record_getstring(msiobj* record, PyObject* args)
}
if (status != ERROR_SUCCESS)
return msierror((int) status);
string = PyString_FromString(res);
string = PyUnicode_FromString(res);
if (buf != res)
free(res);
return string;