Fix typos in comments, documentation and test method names
authorMartin Panter <vadmium+py@gmail.com>
Sun, 8 May 2016 13:48:10 +0000 (13:48 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 8 May 2016 13:48:10 +0000 (13:48 +0000)
Doc/howto/logging-cookbook.rst
Doc/reference/simple_stmts.rst
Lib/http/cookiejar.py
Lib/idlelib/ChangeLog
Lib/test/test_descr.py
Lib/test/test_module.py
Lib/tkinter/__init__.py
Lib/urllib/robotparser.py
Mac/BuildScript/scripts/postflight.patch-profile
Misc/NEWS

index 57b433398b7acabd03119d3ba1abd36011a9eff7..e784acca430ecd66b7a2a74a52a203fbbdd624d9 100644 (file)
@@ -2231,7 +2231,7 @@ flushing behavior.
 
 The example script has a simple function, ``foo``, which just cycles through
 all the logging levels, writing to ``sys.stderr`` to say what level it's about
-to log at, and then actually logging a message that that level. You can pass a
+to log at, and then actually logging a message at that level. You can pass a
 parameter to ``foo`` which, if true, will log at ERROR and CRITICAL levels -
 otherwise, it only logs at DEBUG, INFO and WARNING levels.
 
index 5f605408b7dd766085a1ebd757ff2cae571b78a0..79a46e274ad91b244757b4cb8680b1d57343493d 100644 (file)
@@ -237,7 +237,7 @@ Assignment of an object to a single target is recursively defined as follows.
    phase, causing less detailed error messages.
 
 Although the definition of assignment implies that overlaps between the
-left-hand side and the right-hand side are 'simultanenous' (for example ``a, b =
+left-hand side and the right-hand side are 'simultaneous' (for example ``a, b =
 b, a`` swaps two variables), overlaps *within* the collection of assigned-to
 variables occur left-to-right, sometimes resulting in confusion.  For instance,
 the following program prints ``[0, 2]``::
index bd367f94cac6b6ec22ddbb61359a4776ed969620..265ccf99f285374b64724c399ebdcd992c023dcd 100644 (file)
@@ -1841,7 +1841,7 @@ def lwp_cookie_str(cookie):
 class LWPCookieJar(FileCookieJar):
     """
     The LWPCookieJar saves a sequence of "Set-Cookie3" lines.
-    "Set-Cookie3" is the format used by the libwww-perl libary, not known
+    "Set-Cookie3" is the format used by the libwww-perl library, not known
     to be compatible with any browser, but which is easy to read and
     doesn't lose information about RFC 2965 cookies.
 
index 90e02f6400ecc98080e6aca17d4cb4db8d824520..0c36664512b1289c6f594a6ee5f8cbb7bed2be35 100644 (file)
@@ -1574,7 +1574,7 @@ Mon Oct 12 23:59:27 1998  Guido van Rossum  <guido@cnri.reston.va.us>
        * Attic/PopupMenu.py: Pass a root to the help window.
 
        * SearchBinding.py:
-       Add parent argument to 'to to line number' dialog box.
+       Add parent argument to 'go to line number' dialog box.
 
 Sat Oct 10 19:15:32 1998  Guido van Rossum  <guido@cnri.reston.va.us>
 
index a8206d3146df09d688754c771a064f21c9924467..92767ec23118be994a3610ab1755927857535cc4 100644 (file)
@@ -3489,7 +3489,7 @@ order (MRO) for bases """
         b.a = a
         z = deepcopy(a) # This blew up before
 
-    def test_unintialized_modules(self):
+    def test_uninitialized_modules(self):
         # Testing uninitialized module objects...
         from types import ModuleType as M
         m = M.__new__(M)
index 48ab0b492815d13766674a4c4922ebd70644a738..3a076b392a77e6bada863e3a2b51ea4ce7afb1d8 100644 (file)
@@ -30,7 +30,7 @@ class ModuleTests(unittest.TestCase):
             pass
         self.assertEqual(foo.__doc__, ModuleType.__doc__)
 
-    def test_unintialized_missing_getattr(self):
+    def test_uninitialized_missing_getattr(self):
         # Issue 8297
         # test the text in the AttributeError of an uninitialized module
         foo = ModuleType.__new__(ModuleType)
index be6ed7585bedc415adfde1ef238f50a95c7e1b40..82ac712dd27b4f0702157701341707491e7c602d 100644 (file)
@@ -1249,7 +1249,7 @@ class Misc:
         nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args
         # Missing: (a, c, d, m, o, v, B, R)
         e = Event()
-        # serial field: valid vor all events
+        # serial field: valid for all events
         # number of button: ButtonPress and ButtonRelease events only
         # height field: Configure, ConfigureRequest, Create,
         # ResizeRequest, and Expose events only
@@ -1261,7 +1261,7 @@ class Misc:
         # y field: "valid for events that contain a y field"
         # keysym as decimal: KeyPress and KeyRelease events only
         # x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
-        # KeyRelease,and Motion events
+        # KeyRelease, and Motion events
         e.serial = getint(nsign)
         e.num = getint_event(b)
         try: e.focus = getboolean(f)
index 4fbb0cb995ff24878a185cb231855359a872e9d3..8b69fd985ee5f76c74c9785c44c16a1152adfdb8 100644 (file)
@@ -132,7 +132,7 @@ class RobotFileParser:
             return True
         # Until the robots.txt file has been read or found not
         # to exist, we must assume that no url is allowable.
-        # This prevents false positives when a user erronenously
+        # This prevents false positives when a user erroneously
         # calls can_fetch() before calling read().
         if not self.last_checked:
             return False
index 36d0a3e40e4bb33f4a1c890f4542e134d8ef099e..0a62e327f51b389aa0c27fdd96291bbe1fd14f24 100755 (executable)
@@ -58,7 +58,7 @@ case "${BSH}" in
        fi
        echo "" >> "${RC}"
        echo "# Setting PATH for Python ${PYVER}" >> "${RC}"
-       echo "# The orginal version is saved in .cshrc.pysave" >> "${RC}"
+       echo "# The original version is saved in .cshrc.pysave" >> "${RC}"
        echo "set path=(${PYTHON_ROOT}/bin "'$path'")" >> "${RC}"
        if [ `id -ur` = 0 ]; then
                chown "${USER}" "${RC}"
@@ -90,7 +90,7 @@ if [ -f "${PR}" ]; then
 fi
 echo "" >> "${PR}"
 echo "# Setting PATH for Python ${PYVER}" >> "${PR}"
-echo "# The orginal version is saved in `basename ${PR}`.pysave" >> "${PR}"
+echo "# The original version is saved in `basename ${PR}`.pysave" >> "${PR}"
 echo 'PATH="'"${PYTHON_ROOT}/bin"':${PATH}"' >> "${PR}"
 echo 'export PATH' >> "${PR}"
 if [ `id -ur` = 0 ]; then
index 3d0a4d041b8d2c215e985065cb1e1b826e6e0623..f31b1721e3300d026c9d6b61921ab830cfeaf8cb 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2674,7 +2674,7 @@ Library
   is run with pythonw.exe.
 
 - Issue #21775: shutil.copytree(): fix crash when copying to VFAT. An exception
-  handler assumed that that OSError objects always have a 'winerror' attribute.
+  handler assumed that OSError objects always have a 'winerror' attribute.
   That is not the case, so the exception handler itself raised AttributeError
   when run on Linux (and, presumably, any other non-Windows OS).
   Patch by Greg Ward.