diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-04 05:56:11 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-04 05:56:11 (GMT) |
commit | a74169b7c13bb081380a463541e80b7ba6934abd (patch) | |
tree | de7166901e247cbb41029174eeb068c7e2781f31 /Objects | |
parent | 09121e8eb252d8164d93a12552c832b9bf2e0117 (diff) | |
download | cpython-a74169b7c13bb081380a463541e80b7ba6934abd.zip cpython-a74169b7c13bb081380a463541e80b7ba6934abd.tar.gz cpython-a74169b7c13bb081380a463541e80b7ba6934abd.tar.bz2 |
Remove a few tab characters introduced by r59314.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bytesobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 021925a..c0f4e81 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2602,12 +2602,12 @@ bytes_extend(PyBytesObject *self, PyObject *arg) buf_size = _PyObject_LengthHint(arg); /* The length of the argument is unknown or invalid. */ if (buf_size < 0) { - if (PyErr_Occurred() + if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError) && !PyErr_ExceptionMatches(PyExc_AttributeError)) { Py_DECREF(it); - return NULL; - } + return NULL; + } PyErr_Clear(); buf_size = 32; /* arbitrary */ } |