Issue #27626: Spelling fixes in docs, comments and internal names
Based on patch by Ville Skyttä.
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 @@
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 @@
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 @@
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 @@
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;