Skip to content

Commit 98472b8

Browse files
committed
Merge 3.2, issue #17047: remove doubled words found in 2.7 to
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2 parents 09b7503 + c30b7b1 commit 98472b8

File tree

13 files changed

+40
-38
lines changed

13 files changed

+40
-38
lines changed

Lib/_pyio.py

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

Lib/concurrent/futures/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def map(self, fn, *iterables, timeout=None):
518518
"""Returns a iterator equivalent to map(fn, iter).
519519
520520
Args:
521-
fn: A callable that will take take as many arguments as there are
521+
fn: A callable that will take as many arguments as there are
522522
passed iterables.
523523
timeout: The maximum number of seconds to wait. If None, then there
524524
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
@@ -466,7 +466,7 @@ def storbinary(self, cmd, fp, blocksize=8192, callback=None, rest=None):
466466
blocksize: The maximum data size to read from fp and send over
467467
the connection at once. [default: 8192]
468468
callback: An optional single parameter callable that is called on
469-
on each block of data after it is sent. [default: None]
469+
each block of data after it is sent. [default: None]
470470
rest: Passed to transfercmd(). [default: None]
471471
472472
Returns:
@@ -488,7 +488,7 @@ def storlines(self, cmd, fp, callback=None):
488488
cmd: A STOR command.
489489
fp: A file-like object with a readline() method.
490490
callback: An optional single parameter callable that is called on
491-
on each line after it is sent. [default: None]
491+
each line after it is sent. [default: None]
492492
493493
Returns:
494494
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
@@ -319,7 +319,7 @@ class passed as the first argument of foo() is the class involved in the
319319
... return self.__set(inst, value)
320320
321321
Now let's define a class with an attribute x defined by a pair of methods,
322-
getx() and and setx():
322+
getx() and setx():
323323
324324
>>> class C(object):
325325
...

0 commit comments

Comments
 (0)