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

Skip to content

Commit 200a615

Browse files
committed
Issue python#27125: Remove duplicated words from documentation and comments
1 parent f50417b commit 200a615

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/howto/pyporting.rst

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

349-
You may also want to use use the ``-bb`` flag with the Python 3 interpreter to
349+
You may also want to use the ``-bb`` flag with the Python 3 interpreter to
350350
trigger an exception when you are comparing bytes to strings. Usually it's
351351
simply ``False``, but if you made a mistake in your separation of text/binary
352352
data handling you may be accidentally comparing text and binary data. This flag

Doc/library/tix.rst

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

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

157157
.. Python Demo of:

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python -m idlelib.idle_test.htest
1616

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 lowercased
19-
even if xyz.py is not. Here is a possible template, with the blanks after after
19+
even if xyz.py is not. Here is a possible template, with the blanks after
2020
'.' and 'as', and before and after '_' to be filled in.
2121

2222
import unittest

Lib/lib-tk/Tix.py

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

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

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ def setUp(self):
17551755
self.conn, self.connaddr = self.srv.accept()
17561756

17571757
def clientSetUp(self):
1758-
# The is a hittable race between serverExplicitReady() and the
1758+
# There is a hittable race between serverExplicitReady() and the
17591759
# accept() call; sleep a little while to avoid it, otherwise
17601760
# we could get an exception
17611761
time.sleep(0.1)

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ from_address(addr)
5555
5656
from_param(obj)
5757
- typecheck and convert a Python object into a C function call parameter
58-
the result may be an instance of the type, or an integer or tuple
58+
The result may be an instance of the type, or an integer or tuple
5959
(typecode, value[, obj])
6060
6161
instance methods/properties

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ frozenset_hash(PyObject *self)
784784
hash *= PySet_GET_SIZE(self) + 1;
785785
while (set_next(so, &pos, &entry)) {
786786
/* Work to increase the bit dispersion for closely spaced hash
787-
values. The is important because some use cases have many
787+
values. This is important because some use cases have many
788788
combinations of a small number of elements with nearby
789789
hashes so that many distinct combinations collapse to only
790790
a handful of distinct hash values. */

Objects/stringobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static PyObject *interned;
3535
For PyString_FromString(), the parameter `str' points to a null-terminated
3636
string containing exactly `size' bytes.
3737
38-
For PyString_FromStringAndSize(), the parameter the parameter `str' is
38+
For PyString_FromStringAndSize(), the parameter `str' is
3939
either NULL or else points to a string containing at least `size' bytes.
4040
For PyString_FromStringAndSize(), the string in the `str' parameter does
4141
not have to be null-terminated. (Therefore it is safe to construct a

0 commit comments

Comments
 (0)