diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-15 03:18:48 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-15 03:18:48 (GMT) |
commit | 42da663e6fe7ecbb89b17d596c76812a91bb99a4 (patch) | |
tree | f660a093d1eb0841656b9b10173589f357ec0484 /Objects/bytearrayobject.c | |
parent | f6db0bbbeefa1bde9fd09c53e7c6bf0e57481590 (diff) | |
download | cpython-42da663e6fe7ecbb89b17d596c76812a91bb99a4.zip cpython-42da663e6fe7ecbb89b17d596c76812a91bb99a4.tar.gz cpython-42da663e6fe7ecbb89b17d596c76812a91bb99a4.tar.bz2 |
#11515: fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r-- | Objects/bytearrayobject.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 8606b81..8aa770d 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -936,12 +936,12 @@ bytearray_repr(PyByteArrayObject *self) static PyObject * bytearray_str(PyObject *op) { - if (Py_BytesWarningFlag) { - if (PyErr_WarnEx(PyExc_BytesWarning, - "str() on a bytearray instance", 1)) - return NULL; - } - return bytearray_repr((PyByteArrayObject*)op); + if (Py_BytesWarningFlag) { + if (PyErr_WarnEx(PyExc_BytesWarning, + "str() on a bytearray instance", 1)) + return NULL; + } + return bytearray_repr((PyByteArrayObject*)op); } static PyObject * @@ -1459,7 +1459,7 @@ done: static PyObject * bytearray_maketrans(PyObject *null, PyObject *args) { - return _Py_bytes_maketrans(args); + return _Py_bytes_maketrans(args); } @@ -2626,7 +2626,7 @@ bytearray_extend(PyByteArrayObject *self, PyObject *arg) if (it == NULL) return NULL; - /* Try to determine the length of the argument. 32 is abitrary. */ + /* Try to determine the length of the argument. 32 is arbitrary. */ buf_size = _PyObject_LengthHint(arg, 32); if (buf_size == -1) { Py_DECREF(it); |