summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-03-15 05:18:48 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2011-03-15 05:18:48 +0200
commit42da663e6fe7ecbb89b17d596c76812a91bb99a4 (patch)
treef660a093d1eb0841656b9b10173589f357ec0484 /Objects
parentf6db0bbbeefa1bde9fd09c53e7c6bf0e57481590 (diff)
downloadcpython-git-42da663e6fe7ecbb89b17d596c76812a91bb99a4.tar.gz
#11515: fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytearrayobject.c16
-rw-r--r--Objects/bytesobject.c2
-rw-r--r--Objects/longobject.c2
-rw-r--r--Objects/stringlib/string_format.h2
4 files changed, 11 insertions, 11 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index 8606b81d4d..8aa770d87d 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);
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 85267a7e30..334e356607 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -495,7 +495,7 @@ PyObject *PyBytes_DecodeEscape(const char *s,
default:
*p++ = '\\';
s--;
- goto non_esc; /* an arbitry number of unescaped
+ goto non_esc; /* an arbitrary number of unescaped
UTF-8 bytes may follow. */
}
}
diff --git a/Objects/longobject.c b/Objects/longobject.c
index f7c2e3aa24..7af5caf92e 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -3020,7 +3020,7 @@ ah*bh and al*bl too.
* of slices, each with a->ob_size digits, and multiply the slices by a,
* one at a time. This gives k_mul balanced inputs to work with, and is
* also cache-friendly (we compute one double-width slice of the result
- * at a time, then move on, never bactracking except for the helpful
+ * at a time, then move on, never backtracking except for the helpful
* single-width slice overlap between successive partial sums).
*/
static PyLongObject *
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h
index bc70e97be4..b2095fd839 100644
--- a/Objects/stringlib/string_format.h
+++ b/Objects/stringlib/string_format.h
@@ -6,7 +6,7 @@
*/
-/* Defines for Python 2.6 compatability */
+/* Defines for Python 2.6 compatibility */
#if PY_VERSION_HEX < 0x03000000
#define PyLong_FromSsize_t _PyLong_FromSsize_t
#endif