]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in comments, documentation and test method names
authorMartin Panter <vadmium+py@gmail.com>
Sun, 8 May 2016 13:18:25 +0000 (13:18 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 8 May 2016 13:18:25 +0000 (13:18 +0000)
Doc/howto/logging-cookbook.rst
Doc/library/logging.handlers.rst
Lib/_LWPCookieJar.py
Lib/idlelib/ChangeLog
Lib/lib-tk/Tkinter.py
Lib/robotparser.py
Lib/test/test_descr.py
Mac/BuildScript/scripts/postflight.patch-profile
Misc/HISTORY

index 3ee65c4ace198f9ed190c35f8a6ab52692ff174c..4b8765a5115014878626714febaf650816551d37 100644 (file)
@@ -1247,7 +1247,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 3690d865d438acdc3f5215596523fde4dca0f76c..27167f015a3347b767e15c05959d9892b37bc007 100644 (file)
@@ -349,7 +349,7 @@ sends logging output to a network socket. The base class uses a TCP socket.
    .. method:: createSocket()
 
       Tries to create a socket; on failure, uses an exponential back-off
-      algorithm.  On intial failure, the handler will drop the message it was
+      algorithm.  On initial failure, the handler will drop the message it was
       trying to send.  When subsequent messages are handled by the same
       instance, it will not try connecting until some time has passed.  The
       default parameters are such that the initial delay is one second, and if
index a446aebe11af0513daab84aa4f8711f1620e6573..d91cb5140488b0c9c693f84682fc01a10f2b68c8 100644 (file)
@@ -49,7 +49,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 985871bee7c292c6dc773da0faf9730b7bc69554..968a344c037c0c9f068d94a0cebdcab82d5fe960 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 79448190f2e8e13efe070e12c2b8178aef9be9c0..cc657fa84fb7c3ac722b9fd904963161974a4d50 100644 (file)
@@ -1244,7 +1244,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
@@ -1256,7 +1256,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 b46b75300897485ba1466f901f1d450e423c3ae1..a7137a3064ff3cd133894e1b9f9b945daf1f1790 100644 (file)
@@ -136,7 +136,7 @@ class RobotFileParser:
 
         # 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 b17bdbf6a941d25810dc4766850e069c63e60e77..9bc114b26ab0283555954761cbd98c43b5a93f10 100644 (file)
@@ -3723,7 +3723,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 a66b8c787ac9cc4f36dce2c911135cc2df336e0a..64d91699f257db8e0689e9699df758c7d55850ed 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 bdc68898f80187e8aaf7f4152cdea0eeea07a282..df6e074acd205d342d47692c1e1c18270f59b159 100644 (file)
@@ -3134,7 +3134,7 @@ Core and builtins
 - 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