[Python-3000-checkins] r57704 - python/branches/py3k/Objects/bytesobject.c
neal.norwitz
python-3000-checkins at python.org
Thu Aug 30 07:44:54 CEST 2007
Author: neal.norwitz
Date: Thu Aug 30 07:44:54 2007
New Revision: 57704
Modified:
python/branches/py3k/Objects/bytesobject.c
Log:
Try to fix the problem on the Windows buildbot where this code:
b * sys.maxint # from test_bytes.py line 379
Caused: SystemError: error return without exception set
Modified: python/branches/py3k/Objects/bytesobject.c
==============================================================================
--- python/branches/py3k/Objects/bytesobject.c (original)
+++ python/branches/py3k/Objects/bytesobject.c Thu Aug 30 07:44:54 2007
@@ -125,7 +125,7 @@
new->ob_bytes = PyMem_Malloc(alloc);
if (new->ob_bytes == NULL) {
Py_DECREF(new);
- return NULL;
+ return PyErr_NoMemory();
}
if (bytes != NULL)
memcpy(new->ob_bytes, bytes, size);
More information about the Python-3000-checkins
mailing list