diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:11:04 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:11:04 (GMT) |
commit | eb9957065acaafbf3d8ebee4770ecb13ea0c07c0 (patch) | |
tree | a5caf4a201daa6a5094eb18f605cb2b4b7bc91fd /Objects | |
parent | eac67be948e972dc12b7b4abfa83b09becf6422c (diff) | |
download | cpython-eb9957065acaafbf3d8ebee4770ecb13ea0c07c0.zip cpython-eb9957065acaafbf3d8ebee4770ecb13ea0c07c0.tar.gz cpython-eb9957065acaafbf3d8ebee4770ecb13ea0c07c0.tar.bz2 |
Issue #27626: Spelling fixes in docs, comments and internal names
Based on patch by Ville Skyttä.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/exceptions.c | 6 | ||||
-rw-r--r-- | Objects/longobject.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index aaff0bc..c7cae2e 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1855,7 +1855,7 @@ UnicodeEncodeError_str(PyObject *self) return PyUnicode_FromString(""); /* Get reason and encoding as strings, which they might not be if - they've been modified after we were contructed. */ + they've been modified after we were constructed. */ reason_str = PyObject_Str(uself->reason); if (reason_str == NULL) goto done; @@ -1980,7 +1980,7 @@ UnicodeDecodeError_str(PyObject *self) return PyUnicode_FromString(""); /* Get reason and encoding as strings, which they might not be if - they've been modified after we were contructed. */ + they've been modified after we were constructed. */ reason_str = PyObject_Str(uself->reason); if (reason_str == NULL) goto done; @@ -2078,7 +2078,7 @@ UnicodeTranslateError_str(PyObject *self) return PyUnicode_FromString(""); /* Get reason as a string, which it might not be if it's been - modified after we were contructed. */ + modified after we were constructed. */ reason_str = PyObject_Str(uself->reason); if (reason_str == NULL) goto done; diff --git a/Objects/longobject.c b/Objects/longobject.c index f68d15e..cd04e36 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -775,10 +775,10 @@ _PyLong_FromByteArray(const unsigned char* bytes, size_t n, size_t i; const unsigned char* p = pendbyte; const int pincr = -incr; /* search MSB to LSB */ - const unsigned char insignficant = is_signed ? 0xff : 0x00; + const unsigned char insignificant = is_signed ? 0xff : 0x00; for (i = 0; i < n; ++i, p += pincr) { - if (*p != insignficant) + if (*p != insignificant) break; } numsignificantbytes = n - i; |