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

Skip to content

Commit e514093

Browse files
committed
Issue #27125: Merge typo fixes from 3.5
2 parents 137bac2 + a90a4a9 commit e514093

17 files changed

Lines changed: 20 additions & 21 deletions

File tree

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ which export an initialization function), or compiled-in modules
129129
(where the initialization function is added using :c:func:`PyImport_AppendInittab`).
130130
See :ref:`building` or :ref:`extending-with-embedding` for details.
131131
132-
The initialization function can either pass pass a module definition instance
132+
The initialization function can either pass a module definition instance
133133
to :c:func:`PyModule_Create`, and return the resulting module object,
134134
or request "multi-phase initialization" by returning the definition struct itself.
135135

Doc/howto/pyporting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ your tests under multiple Python interpreters is tox_. You can then integrate
390390
tox with your continuous integration system so that you never accidentally break
391391
Python 2 or 3 support.
392392

393-
You may also want to use use the ``-bb`` flag with the Python 3 interpreter to
393+
You may also want to use the ``-bb`` flag with the Python 3 interpreter to
394394
trigger an exception when you are comparing bytes to strings or bytes to an int
395395
(the latter is available starting in Python 3.5). By default type-differing
396396
comparisons simply return ``False``, but if you made a mistake in your

Doc/library/enum.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ Then::
314314
>>> str(Mood.funky)
315315
'my custom str! 1'
316316

317-
The rules for what is allowed are as follows: names that start and end with a
318-
with a single underscore are reserved by enum and cannot be used; all other
317+
The rules for what is allowed are as follows: names that start and end with
318+
a single underscore are reserved by enum and cannot be used; all other
319319
attributes defined within an enumeration will become members of this
320320
enumeration, with the exception of special methods (:meth:`__str__`,
321321
:meth:`__add__`, etc.) and descriptors (methods are also descriptors).

Doc/library/tkinter.tix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Basic Widgets
142142

143143
The `LabelEntry
144144
<http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelEntry.htm>`_
145-
widget packages an entry widget and a label into one mega widget. It can be used
145+
widget packages an entry widget and a label into one mega widget. It can
146146
be used to simplify the creation of "entry-form" type of interface.
147147

148148
.. Python Demo of:

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ The module defines the following classes, functions and decorators:
297297

298298
.. class:: Tuple
299299

300-
Tuple type; ``Tuple[X, Y]`` is the is the type of a tuple of two items
300+
Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items
301301
with the first item of type X and the second of type Y.
302302

303303
Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding

Doc/whatsnew/3.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ kernel version of 2.6.36 or later and glibc of 2.13 or later, provides the
13221322
ability to query or set the resource limits for processes other than the one
13231323
making the call. (Contributed by Christian Heimes in :issue:`16595`.)
13241324

1325-
On Linux kernel version 2.6.36 or later, there are there are also some new
1325+
On Linux kernel version 2.6.36 or later, there are also some new
13261326
Linux specific constants: :attr:`~resource.RLIMIT_MSGQUEUE`,
13271327
:attr:`~resource.RLIMIT_NICE`, :attr:`~resource.RLIMIT_RTPRIO`,
13281328
:attr:`~resource.RLIMIT_RTTIME`, and :attr:`~resource.RLIMIT_SIGPENDING`.

Doc/whatsnew/3.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ messages. (Contributed by Gavin Chappell and Maciej Szulik in :issue:`16914`.)
16901690

16911691
Both the :meth:`SMTP.sendmail() <smtplib.SMTP.sendmail>` and
16921692
:meth:`SMTP.send_message() <smtplib.SMTP.send_message>` methods now
1693-
support support :rfc:`6531` (SMTPUTF8).
1693+
support :rfc:`6531` (SMTPUTF8).
16941694
(Contributed by Milan Oberkirch and R. David Murray in :issue:`22027`.)
16951695

16961696

Lib/ctypes/macholib/README.ctypes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Files in this directory from from Bob Ippolito's py2app.
1+
Files in this directory come from Bob Ippolito's py2app.
22

33
License: Any components of the py2app suite may be distributed under
44
the MIT or PSF open source licenses.

Lib/idlelib/idle_test/README.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ python -m idlelib.idle_test.htest
1717
The idle directory, idlelib, has over 60 xyz.py files. The idle_test
1818
subdirectory should contain a test_xyz.py for each, where 'xyz' is
1919
lowercased even if xyz.py is not. Here is a possible template, with the
20-
blanks after after '.' and 'as', and before and after '_' to be filled
21-
in.
20+
blanks after '.' and 'as', and before and after '_' to be filled in.
2221

2322
import unittest
2423
from test.support import requires

Lib/test/test_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def test_itemiterator_pickling(self):
863863
itorg = iter(data.items())
864864
d = pickle.dumps(itorg, proto)
865865
it = pickle.loads(d)
866-
# note that the type of type of the unpickled iterator
866+
# note that the type of the unpickled iterator
867867
# is not necessarily the same as the original. It is
868868
# merely an object supporting the iterator protocol, yielding
869869
# the same objects as the original one.

0 commit comments

Comments
 (0)