mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 88735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays ........
This commit is contained in:
parent
752b950e6b
commit
e0c8635d89
3 changed files with 6 additions and 3 deletions
|
@ -2285,8 +2285,8 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
if (n == 0) {
|
||||
PyErr_SetString(PyExc_OverflowError,
|
||||
"cannot pop an empty bytearray");
|
||||
PyErr_SetString(PyExc_IndexError,
|
||||
"pop from empty bytearray");
|
||||
return NULL;
|
||||
}
|
||||
if (where < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue