Fix spelling and grammar in documentation and code comments
diff --git a/Misc/HISTORY b/Misc/HISTORY
index 06eb979..98e9041 100644
--- a/Misc/HISTORY
+++ b/Misc/HISTORY
@@ -1339,7 +1339,7 @@
Library
-------
-- Issue #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'.
+- Issue #14768: os.path.expanduser('~/a') doesn't work correctly when HOME is '/'.
- Issue #14371: Support bzip2 in zipfile module. Patch by Serhiy Storchaka.
@@ -23970,7 +23970,7 @@
- The traceback.py module has a new function tb_lineno() by Marc-Andre
Lemburg which extracts the line number from the linenumber table in
-the code object. Apparently the traceback object doesn't contains the
+the code object. Apparently the traceback object doesn't contain the
right linenumber when -O is used. Rather than guessing whether -O is
on or off, the module itself uses tb_lineno() unconditionally.
diff --git a/Misc/NEWS b/Misc/NEWS
index fe81bbd..cdbb1a4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -7127,7 +7127,7 @@
on Windows and adds no value over and above python -m pydoc ...
- Issue #18155: The csv module now correctly handles csv files that use
- a delimter character that has a special meaning in regexes, instead of
+ a delimiter character that has a special meaning in regexes, instead of
throwing an exception.
- Issue #14360: encode_quopri can now be successfully used as an encoder
diff --git a/Misc/coverity_model.c b/Misc/coverity_model.c
index 493e7c1..488604c 100644
--- a/Misc/coverity_model.c
+++ b/Misc/coverity_model.c
@@ -30,7 +30,7 @@
typedef struct {} RFILE;
/* Python/pythonrun.c
- * resourece leak false positive */
+ * resource leak false positive */
void Py_FatalError(const char *msg) {
__coverity_panic__();