Skip to content

Commit ff00c84

Browse files
committed
Issue #27125: Merge typo fixes from 3.5
2 parents e93a0e0 + a1706a7 commit ff00c84

File tree

17 files changed

+20
-21
lines changed

17 files changed

+20
-21
lines changed

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.

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4758,7 +4758,7 @@ def setUp(self):
47584758
self.addCleanup(self.conn.close)
47594759

47604760
def clientSetUp(self):
4761-
# The is a hittable race between serverExplicitReady() and the
4761+
# There is a hittable race between serverExplicitReady() and the
47624762
# accept() call; sleep a little while to avoid it, otherwise
47634763
# we could get an exception
47644764
time.sleep(0.1)

Lib/tkinter/tix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,8 +1048,8 @@ def __init__ (self,master=None,cnf={}, **kw):
10481048

10491049
class LabelEntry(TixWidget):
10501050
"""LabelEntry - Entry field with label. Packages an entry widget
1051-
and a label into one mega widget. It can be used be used to simplify
1052-
the creation of ``entry-form'' type of interface.
1051+
and a label into one mega widget. It can be used to simplify the creation
1052+
of ``entry-form'' type of interface.
10531053
10541054
Subwidgets Class
10551055
---------- -----

Misc/HISTORY

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10639,8 +10639,8 @@ Core and Builtins
1063910639
certain operations between bytes/buffer and str like str(b'') and
1064010640
comparison.
1064110641

10642-
- The standards streams sys.stdin, stdout and stderr may be None when
10643-
the when the C runtime library returns an invalid file descriptor
10642+
- The standard streams sys.stdin, stdout and stderr may be None
10643+
when the C runtime library returns an invalid file descriptor
1064410644
for the streams (fileno(stdin) < 0). For now this happens only for
1064510645
Windows GUI apps and scripts started with `pythonw.exe`.
1064610646

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3775,7 +3775,7 @@ Library
37753775
- Issue #22247: Add NNTPError to nntplib.__all__.
37763776

37773777
- Issue #22366: urllib.request.urlopen will accept a context object
3778-
(SSLContext) as an argument which will then used be for HTTPS connection.
3778+
(SSLContext) as an argument which will then be used for HTTPS connection.
37793779
Patch by Alex Gaynor.
37803780

37813781
- Issue #4180: The warnings registries are now reset when the filters

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ from_address(addr)
4949
5050
from_param(obj)
5151
- typecheck and convert a Python object into a C function call parameter
52-
the result may be an instance of the type, or an integer or tuple
52+
The result may be an instance of the type, or an integer or tuple
5353
(typecode, value[, obj])
5454
5555
instance methods/properties

Modules/_pickle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ typedef struct PicklerObject {
573573
int bin; /* Boolean, true if proto > 0 */
574574
int framing; /* True when framing is enabled, proto >= 4 */
575575
Py_ssize_t frame_start; /* Position in output_buffer where the
576-
where the current frame begins. -1 if there
576+
current frame begins. -1 if there
577577
is no frame currently open. */
578578

579579
Py_ssize_t buf_size; /* Size of the current buffered pickle data */

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Py_LOCAL_INLINE(Py_ssize_t) _PyBytesWriter_GetSize(_PyBytesWriter *writer,
3838
For PyBytes_FromString(), the parameter `str' points to a null-terminated
3939
string containing exactly `size' bytes.
4040
41-
For PyBytes_FromStringAndSize(), the parameter the parameter `str' is
41+
For PyBytes_FromStringAndSize(), the parameter `str' is
4242
either NULL or else points to a string containing at least `size' bytes.
4343
For PyBytes_FromStringAndSize(), the string in the `str' parameter does
4444
not have to be null-terminated. (Therefore it is safe to construct a

0 commit comments

Comments
 (0)