diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:30:58 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:30:58 (GMT) |
commit | 8bde9111157e0eb994159c1506b1cec86298f810 (patch) | |
tree | 27d5ea90712d9eee3e678804ef581bac50ff9ba2 /Objects | |
parent | 4b53359090b7b3cfad128e40083f563f7c1900e4 (diff) | |
parent | eb9957065acaafbf3d8ebee4770ecb13ea0c07c0 (diff) | |
download | cpython-8bde9111157e0eb994159c1506b1cec86298f810.zip cpython-8bde9111157e0eb994159c1506b1cec86298f810.tar.gz cpython-8bde9111157e0eb994159c1506b1cec86298f810.tar.bz2 |
Issue #27626: Merge spelling fixes from 3.5
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 7bc9310..d97d569 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1849,7 +1849,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; @@ -1974,7 +1974,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; @@ -2072,7 +2072,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 4732545..d49594d 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; |