]> granicus.if.org Git - python/commitdiff
Fix spelling (inital), grammar (may translates) in documentation, comments
authorMartin Panter <vadmium+py@gmail.com>
Tue, 19 Apr 2016 04:03:41 +0000 (04:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 19 Apr 2016 04:03:41 +0000 (04:03 +0000)
Doc/whatsnew/2.2.rst
Lib/gzip.py
Lib/optparse.py
Misc/HISTORY
Modules/_io/stringio.c

index 212ed04fa22ffd833a364135c83a44e9f19ffeb0..24dd81d9d3ad43fe8d7a6c14b539548014503027 100644 (file)
@@ -758,7 +758,7 @@ Here are the changes 2.2 introduces:
   operators.
 
 * Python 2.2 supports some command-line arguments for testing whether code will
-  works with the changed division semantics.  Running python with :option:`-Q
+  work with the changed division semantics.  Running python with :option:`-Q
   warn <-Q>` will cause a warning to be issued whenever division is applied to two
   integers.  You can use this to find code that's affected by the change and fix
   it.  By default, Python 2.2 will simply perform classic division without a
index de0dab1037436d446bb626d711ea3cf85cdb1a8e..07c6db493b0b368aebb974d591a448f3412f863d 100644 (file)
@@ -55,7 +55,7 @@ class GzipFile(io.BufferedIOBase):
         a file object.
 
         When fileobj is not None, the filename argument is only used to be
-        included in the gzip file header, which may includes the original
+        included in the gzip file header, which may include the original
         filename of the uncompressed file.  It defaults to the filename of
         fileobj, if discernible; otherwise, it defaults to the empty string,
         and in this case the original filename is not included in the header.
index f8c70dd85e0425a620d3c25807becdc30e166884..bec492d8cdbf1f23e9143dcf249b825403b0ef53 100644 (file)
@@ -914,7 +914,7 @@ class OptionContainer:
       _short_opt : { string : Option }
         dictionary mapping short option strings, eg. "-f" or "-X",
         to the Option instances that implement them.  If an Option
-        has multiple short option strings, it will appears in this
+        has multiple short option strings, it will appear in this
         dictionary multiple times. [1]
       _long_opt : { string : Option }
         dictionary mapping long option strings, eg. "--file" or
index 7119362cb910809ca7157a0d74e58ea93888395e..bdc68898f80187e8aaf7f4152cdea0eeea07a282 100644 (file)
@@ -12831,7 +12831,7 @@ the first class with an applicable hook wins.  Makes more sense.
 - Changed the checks made in Py_Initialize() and Py_Finalize().  It is
 now legal to call these more than once.  The first call to
 Py_Initialize() initializes, the first call to Py_Finalize()
-finalizes.  There's also a new API, Py_IsInitalized() which checks
+finalizes.  There's also a new API, Py_IsInitialized() which checks
 whether we are already initialized (in case you want to leave things
 as they were).
 
index 59a3905b011c20eaa106733a3e539780ffdc5a64..83bb7acacbb8a11bd1f7255a0fae3e39de799950 100644 (file)
@@ -736,8 +736,8 @@ stringio_setstate(stringio *self, PyObject *state)
     Py_DECREF(initarg);
 
     /* Restore the buffer state. Even if __init__ did initialize the buffer,
-       we have to initialize it again since __init__ may translates the
-       newlines in the inital_value string. We clearly do not want that
+       we have to initialize it again since __init__ may translate the
+       newlines in the initial_value string. We clearly do not want that
        because the string value in the state tuple has already been translated
        once by __init__. So we do not take any chance and replace object's
        buffer completely. */