Removed duplicated words in in comments and docs.
diff --git a/Misc/HISTORY b/Misc/HISTORY
index 88e8a6b..8370d8e 100644
--- a/Misc/HISTORY
+++ b/Misc/HISTORY
@@ -3972,7 +3972,7 @@
 - Issue #12041: Make test_wait3 more robust.
 
 - Issue #11873: Change regex in test_compileall to fix occasional failures when
-  when the randomly generated temporary path happened to match the regex.
+  the randomly generated temporary path happened to match the regex.
 
 - Issue #11958: Fix FTP tests for IPv6, bind to "::1" instead of "localhost".
   Patch written by Charles-Francois Natali.
@@ -14018,7 +14018,7 @@
 - When method objects have an attribute that can be satisfied either
   by the function object or by the method object, the function
   object's attribute usually wins.  Christian Tismer pointed out that
-  that this is really a mistake, because this only happens for special
+  this is really a mistake, because this only happens for special
   methods (like __reduce__) where the method object's version is
   really more appropriate than the function's attribute.  So from now
   on, all method attributes will have precedence over function