Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f26565

Browse files
committed
Fix spelling (inital), grammar (may translates) in documentation, comments
1 parent 0d88c65 commit 8f26565

11 files changed

Lines changed: 15 additions & 15 deletions

File tree

Doc/library/tempfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ to specify the directory and this is the recommend approach.
256256
module.
257257

258258
If ``tempdir`` is unset or ``None`` at any call to any of the above
259-
functions except :func:`gettempprefix` it is initalized following the
259+
functions except :func:`gettempprefix` it is initialized following the
260260
algorithm described in :func:`gettempdir`.
261261

262262
.. _tempfile-examples:

Doc/library/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ The :mod:`test.support` module defines the following functions:
550550
or passed to an external program (i.e. the ``-accept`` argument to
551551
openssl's s_server mode). Always prefer :func:`bind_port` over
552552
:func:`find_unused_port` where possible. Using a hard coded port is
553-
discouraged since it can makes multiple instances of the test impossible to
553+
discouraged since it can make multiple instances of the test impossible to
554554
run simultaneously, which is a problem for buildbots.
555555

556556

Doc/whatsnew/2.2.rst

Lines changed: 1 addition & 1 deletion
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` 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def __init__(self, filename=None, mode=None,
133133
a file object.
134134
135135
When fileobj is not None, the filename argument is only used to be
136-
included in the gzip file header, which may includes the original
136+
included in the gzip file header, which may include the original
137137
filename of the uncompressed file. It defaults to the filename of
138138
fileobj, if discernible; otherwise, it defaults to the empty string,
139139
and in this case the original filename is not included in the header.

Lib/optparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ class OptionContainer:
900900
_short_opt : { string : Option }
901901
dictionary mapping short option strings, eg. "-f" or "-X",
902902
to the Option instances that implement them. If an Option
903-
has multiple short option strings, it will appears in this
903+
has multiple short option strings, it will appear in this
904904
dictionary multiple times. [1]
905905
_long_opt : { string : Option }
906906
dictionary mapping long option strings, eg. "--file" or

Lib/test/test_tracemalloc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_snapshot_save_attr(self):
253253
snapshot.dump(support.TESTFN)
254254
self.addCleanup(support.unlink, support.TESTFN)
255255

256-
# load() should recreates the attribute
256+
# load() should recreate the attribute
257257
snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
258258
self.assertEqual(snapshot2.test_attr, "new")
259259

Misc/HISTORY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23743,7 +23743,7 @@ the first class with an applicable hook wins. Makes more sense.
2374323743
- Changed the checks made in Py_Initialize() and Py_Finalize(). It is
2374423744
now legal to call these more than once. The first call to
2374523745
Py_Initialize() initializes, the first call to Py_Finalize()
23746-
finalizes. There's also a new API, Py_IsInitalized() which checks
23746+
finalizes. There's also a new API, Py_IsInitialized() which checks
2374723747
whether we are already initialized (in case you want to leave things
2374823748
as they were).
2374923749

Misc/NEWS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5238,8 +5238,8 @@ Library
52385238
- Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
52395239
NID, short name and long name.
52405240

5241-
- Issue #19282: dbm.open now supports the context management protocol. (Inital
5242-
patch by Claudiu Popa)
5241+
- Issue #19282: dbm.open now supports the context management protocol.
5242+
(Initial patch by Claudiu Popa)
52435243

52445244
- Issue #8311: Added support for writing any bytes-like objects in the aifc,
52455245
sunau, and wave modules.
@@ -5333,7 +5333,7 @@ Library
53335333
- Issue #19227: Remove pthread_atfork() handler. The handler was added to
53345334
solve #18747 but has caused issues.
53355335

5336-
- Issue #19420: Fix reference leak in module initalization code of
5336+
- Issue #19420: Fix reference leak in module initialization code of
53375337
_hashopenssl.c
53385338

53395339
- Issue #19329: Optimized compiling charsets in regular expressions.

Modules/_io/stringio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ stringio_setstate(stringio *self, PyObject *state)
913913
Py_DECREF(initarg);
914914

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

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,7 @@ _PyObject_GetState(PyObject *obj, int required)
39013901
}
39023902
}
39033903

3904-
/* The list is stored on the class so it may mutates while we
3904+
/* The list is stored on the class so it may mutate while we
39053905
iterate over it */
39063906
if (slotnames_size != Py_SIZE(slotnames)) {
39073907
PyErr_Format(PyExc_RuntimeError,
@@ -4035,7 +4035,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
40354035
}
40364036

40374037
/* The object does not have __getnewargs_ex__ and __getnewargs__. This may
4038-
means __new__ does not takes any arguments on this object, or that the
4038+
mean __new__ does not takes any arguments on this object, or that the
40394039
object does not implement the reduce protocol for pickling or
40404040
copying. */
40414041
*args = NULL;

0 commit comments

Comments
 (0)