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

Skip to content

Commit 16b5c13

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

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
@@ -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
@@ -517,7 +517,7 @@ def map(self, fn, *iterables, timeout=None):
517517
"""Returns a iterator equivalent to map(fn, iter).
518518
519519
Args:
520-
fn: A callable that will take take as many arguments as there are
520+
fn: A callable that will take as many arguments as there are
521521
passed iterables.
522522
timeout: The maximum number of seconds to wait. If None, then there
523523
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
@@ -263,8 +263,8 @@ def finalize_options(self):
263263

264264
if self.user and (self.prefix or self.exec_prefix or self.home or
265265
self.install_base or self.install_platbase):
266-
raise DistutilsOptionError("can't combine user with with prefix/"
267-
"exec_prefix/home or install_(plat)base")
266+
raise DistutilsOptionError("can't combine user with prefix, "
267+
"exec_prefix/home, or install_(plat)base")
268268

269269
# Next, stuff that's wrong (or dubious) only on certain platforms.
270270
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
@@ -486,7 +486,7 @@ def storbinary(self, cmd, fp, blocksize=8192, callback=None, rest=None):
486486
blocksize: The maximum data size to read from fp and send over
487487
the connection at once. [default: 8192]
488488
callback: An optional single parameter callable that is called on
489-
on each block of data after it is sent. [default: None]
489+
each block of data after it is sent. [default: None]
490490
rest: Passed to transfercmd(). [default: None]
491491
492492
Returns:
@@ -513,7 +513,7 @@ def storlines(self, cmd, fp, callback=None):
513513
cmd: A STOR command.
514514
fp: A file-like object with a readline() method.
515515
callback: An optional single parameter callable that is called on
516-
on each line after it is sent. [default: None]
516+
each line after it is sent. [default: None]
517517
518518
Returns:
519519
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)