diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-06-02 11:32:23 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-06-02 11:32:23 (GMT) |
commit | 704d8b154b23dfc2fdf5a378e31636ba1a6e2d22 (patch) | |
tree | 8f2b12e2dece57c361e31186e87e8846d8107345 | |
parent | 0f5998911c0a39400a42bad781e84eba822fed38 (diff) | |
download | cpython-704d8b154b23dfc2fdf5a378e31636ba1a6e2d22.zip cpython-704d8b154b23dfc2fdf5a378e31636ba1a6e2d22.tar.gz cpython-704d8b154b23dfc2fdf5a378e31636ba1a6e2d22.tar.bz2 |
Port GetInteger and GetString to 3k.
-rw-r--r-- | PC/_msi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |