Author: guido.van.rossum
Date: Wed Nov 21 22:53:11 2007
New Revision: 59100
Modified:
python/branches/py3k/Modules/posixmodule.c
Log:
More PyBytes -> PyString.
Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c (original)
+++ python/branches/py3k/Modules/posixmodule.c Wed Nov 21 22:53:11 2007
@@ -6568,11 +6568,11 @@
}
/* Allocate bytes */
- result = PyBytes_FromStringAndSize(NULL, howMany);
+ result = PyString_FromStringAndSize(NULL, howMany);
if (result != NULL) {
/* Get random data */
if (! pCryptGenRandom(hCryptProv, howMany, (unsigned char*)
- PyBytes_AS_STRING(result))) {
+ PyString_AS_STRING(result))) {
Py_DECREF(result);
return win32_error("CryptGenRandom", NULL);
}
@@ -6639,11 +6639,11 @@
"negative argument not allowed");
/* Allocate bytes */
- result = PyBytes_FromStringAndSize(NULL, howMany);
+ result = PyString_FromStringAndSize(NULL, howMany);
if (result != NULL) {
/* Get random data */
if (RAND_pseudo_bytes((unsigned char*)
- PyBytes_AS_STRING(result),
+ PyString_AS_STRING(result),
howMany) < 0) {
Py_DECREF(result);
return PyErr_Format(PyExc_ValueError,
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins