Skip to content

Commit c30b7b1

Browse files
committed
Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,
as reported by Serhiy Storchaka and Matthew Barnett.
1 parent 0158af3 commit c30b7b1

13 files changed

Lines changed: 40 additions & 38 deletions

File tree

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def _unsupported(self, name):
298298
def seek(self, pos, whence=0):
299299
"""Change stream position.
300300
301-
Change the stream position to byte offset offset. offset is
301+
Change the stream position to byte offset pos. Argument pos is
302302
interpreted relative to the position indicated by whence. Values
303303
for whence are ints:
304304

Lib/concurrent/futures/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def map(self, fn, *iterables, timeout=None):
519519
"""Returns a iterator equivalent to map(fn, iter).
520520
521521
Args:
522-
fn: A callable that will take take as many arguments as there are
522+
fn: A callable that will take as many arguments as there are
523523
passed iterables.
524524
timeout: The maximum number of seconds to wait. If None, then there
525525
is no limit on the wait time.

Lib/distutils/command/install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ def finalize_options(self):
278278

279279
if self.user and (self.prefix or self.exec_prefix or self.home or
280280
self.install_base or self.install_platbase):
281-
raise DistutilsOptionError("can't combine user with with prefix/"
282-
"exec_prefix/home or install_(plat)base")
281+
raise DistutilsOptionError("can't combine user with prefix, "
282+
"exec_prefix/home, or install_(plat)base")
283283

284284
# Next, stuff that's wrong (or dubious) only on certain platforms.
285285
if os.name != "posix":

Lib/distutils/tests/test_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_finalize_options(self):
165165
cmd.home = 'home'
166166
self.assertRaises(DistutilsOptionError, cmd.finalize_options)
167167

168-
# can't combine user with with prefix/exec_prefix/home or
168+
# can't combine user with prefix/exec_prefix/home or
169169
# install_(plat)base
170170
cmd.prefix = None
171171
cmd.user = 'user'

Lib/ftplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def storbinary(self, cmd, fp, blocksize=8192, callback=None, rest=None):
464464
blocksize: The maximum data size to read from fp and send over
465465
the connection at once. [default: 8192]
466466
callback: An optional single parameter callable that is called on
467-
on each block of data after it is sent. [default: None]
467+
each block of data after it is sent. [default: None]
468468
rest: Passed to transfercmd(). [default: None]
469469
470470
Returns:
@@ -486,7 +486,7 @@ def storlines(self, cmd, fp, callback=None):
486486
cmd: A STOR command.
487487
fp: A file-like object with a readline() method.
488488
callback: An optional single parameter callable that is called on
489-
on each line after it is sent. [default: None]
489+
each line after it is sent. [default: None]
490490
491491
Returns:
492492
The response code.

Lib/idlelib/extend.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Extensions are not required to define menu entries for all the events they
5454
implement. (They are also not required to create keybindings, but in that
5555
case there must be empty bindings in cofig-extensions.def)
5656

57-
Here is a complete example example:
57+
Here is a complete example:
5858

5959
class ZoomHeight:
6060

@@ -72,7 +72,7 @@ class ZoomHeight:
7272
"...Do what you want here..."
7373

7474
The final piece of the puzzle is the file "config-extensions.def", which is
75-
used to to configure the loading of extensions and to establish key (or, more
75+
used to configure the loading of extensions and to establish key (or, more
7676
generally, event) bindings to the virtual events defined in the extensions.
7777

7878
See the comments at the top of config-extensions.def for information. It's

Lib/idlelib/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
For security reasons, GvR requested that Idle's Python execution server process
44
connect to the Idle process, which listens for the connection. Since Idle has
5-
has only one client per server, this was not a limitation.
5+
only one client per server, this was not a limitation.
66
77
+---------------------------------+ +-------------+
88
| socketserver.BaseRequestHandler | | SocketIO |

Lib/lib2to3/pgen2/grammar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
class Grammar(object):
23-
"""Pgen parsing tables tables conversion class.
23+
"""Pgen parsing tables conversion class.
2424
2525
Once initialized, this class supplies the grammar tables for the
2626
parsing engine implemented by parse.py. The parsing engine
@@ -45,7 +45,7 @@ class Grammar(object):
4545
these two are each other's inverse.
4646
4747
states -- a list of DFAs, where each DFA is a list of
48-
states, each state is is a list of arcs, and each
48+
states, each state is a list of arcs, and each
4949
arc is a (i, j) pair where i is a label and j is
5050
a state number. The DFA number is the index into
5151
this list. (This name is slightly confusing.)

Lib/msilib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def make_short(self, file):
325325

326326
def add_file(self, file, src=None, version=None, language=None):
327327
"""Add a file to the current component of the directory, starting a new one
328-
one if there is no current component. By default, the file name in the source
328+
if there is no current component. By default, the file name in the source
329329
and the file table will be identical. If the src file is specified, it is
330330
interpreted relative to the current directory. Optionally, a version and a
331331
language can be specified for the entry in the File table."""

Lib/test/test_descrtut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class passed as the first argument of foo() is the class involved in the
316316
... return self.__set(inst, value)
317317
318318
Now let's define a class with an attribute x defined by a pair of methods,
319-
getx() and and setx():
319+
getx() and setx():
320320
321321
>>> class C(object):
322322
...

0 commit comments

Comments
 (0)