[Python-3000-checkins] r63892 - python/branches/py3k/PC/_msi.c
martin.v.loewis
python-3000-checkins at python.org
Tue Jun 3 20:57:13 CEST 2008
Author: martin.v.loewis
Date: Mon Jun 2 13:32:23 2008
New Revision: 63892
Log:
Port GetInteger and GetString to 3k.
Modified:
python/branches/py3k/PC/_msi.c
Modified: python/branches/py3k/PC/_msi.c
==============================================================================
--- python/branches/py3k/PC/_msi.c (original)
+++ python/branches/py3k/PC/_msi.c Mon Jun 2 13:32:23 2008
@@ -351,7 +351,7 @@
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 @@
}
if (status != ERROR_SUCCESS)
return msierror((int) status);
- string = PyString_FromString(res);
+ string = PyUnicode_FromString(res);
if (buf != res)
free(res);
return string;
More information about the Python-3000-checkins
mailing list