Skip to content

Commit 5b48fa9

Browse files
committed
Fix spelling (inital), grammar (may translates) in documentation, comments
1 parent 0cf2cf2 commit 5b48fa9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Doc/whatsnew/2.2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ Here are the changes 2.2 introduces:
758758
operators.
759759

760760
* Python 2.2 supports some command-line arguments for testing whether code will
761-
works with the changed division semantics. Running python with :option:`-Q
761+
work with the changed division semantics. Running python with :option:`-Q
762762
warn <-Q>` will cause a warning to be issued whenever division is applied to two
763763
integers. You can use this to find code that's affected by the change and fix
764764
it. By default, Python 2.2 will simply perform classic division without a

Lib/gzip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, filename=None, mode=None,
5555
a file object.
5656
5757
When fileobj is not None, the filename argument is only used to be
58-
included in the gzip file header, which may includes the original
58+
included in the gzip file header, which may include the original
5959
filename of the uncompressed file. It defaults to the filename of
6060
fileobj, if discernible; otherwise, it defaults to the empty string,
6161
and in this case the original filename is not included in the header.

Lib/optparse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ class OptionContainer:
914914
_short_opt : { string : Option }
915915
dictionary mapping short option strings, eg. "-f" or "-X",
916916
to the Option instances that implement them. If an Option
917-
has multiple short option strings, it will appears in this
917+
has multiple short option strings, it will appear in this
918918
dictionary multiple times. [1]
919919
_long_opt : { string : Option }
920920
dictionary mapping long option strings, eg. "--file" or

Misc/HISTORY

+1-1
Original file line numberDiff line numberDiff line change
@@ -12831,7 +12831,7 @@ the first class with an applicable hook wins. Makes more sense.
1283112831
- Changed the checks made in Py_Initialize() and Py_Finalize(). It is
1283212832
now legal to call these more than once. The first call to
1283312833
Py_Initialize() initializes, the first call to Py_Finalize()
12834-
finalizes. There's also a new API, Py_IsInitalized() which checks
12834+
finalizes. There's also a new API, Py_IsInitialized() which checks
1283512835
whether we are already initialized (in case you want to leave things
1283612836
as they were).
1283712837

Modules/_io/stringio.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ stringio_setstate(stringio *self, PyObject *state)
736736
Py_DECREF(initarg);
737737

738738
/* Restore the buffer state. Even if __init__ did initialize the buffer,
739-
we have to initialize it again since __init__ may translates the
740-
newlines in the inital_value string. We clearly do not want that
739+
we have to initialize it again since __init__ may translate the
740+
newlines in the initial_value string. We clearly do not want that
741741
because the string value in the state tuple has already been translated
742742
once by __init__. So we do not take any chance and replace object's
743743
buffer completely. */

0 commit comments

Comments
 (0)