summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-10-19 10:58:56 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2011-10-19 10:58:56 +0300
commite130a52d8a60229f53c8bc2ea7a1f51ee592bbd7 (patch)
treeb7f128d5f626c78d57d53812a5953c6eb56cca72 /Lib
parenta5a9a9c3696af0a4a0df74618e63a4d47a62e00f (diff)
downloadcpython-git-e130a52d8a60229f53c8bc2ea7a1f51ee592bbd7.tar.gz
Remove duplication.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/configparser.py2
-rw-r--r--Lib/datetime.py2
-rw-r--r--Lib/http/cookiejar.py2
-rw-r--r--Lib/msilib/schema.py2
-rw-r--r--Lib/multiprocessing/__init__.py2
-rw-r--r--Lib/sched.py2
-rw-r--r--Lib/test/test_urllib2.py2
-rw-r--r--Lib/test/test_urlparse.py2
-rw-r--r--Lib/test/test_xmlrpc.py4
-rw-r--r--Lib/threading.py2
-rw-r--r--Lib/tkinter/tix.py10
-rw-r--r--Lib/tkinter/ttk.py2
-rw-r--r--Lib/turtle.py2
13 files changed, 18 insertions, 18 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index 12ba5ad81c..d148b886a2 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -381,7 +381,7 @@ class BasicInterpolation(Interpolation):
would resolve the "%(dir)s" to the value of dir. All reference
expansions are done late, on demand. If a user needs to use a bare % in
- a configuration file, she can escape it by writing %%. Other other % usage
+ a configuration file, she can escape it by writing %%. Other % usage
is considered a user error and raises `InterpolationSyntaxError'."""
_KEYCRE = re.compile(r"%\(([^)]+)\)s")
diff --git a/Lib/datetime.py b/Lib/datetime.py
index 1ae7cb5305..65f95d2030 100644
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -2057,7 +2057,7 @@ z' = z + z.d = 1:MM then, and z'.d=0, and z'.d - z.d = -60 != 0 so [8]
Because we know z.d said z was in daylight time (else [5] would have held and
we would have stopped then), and we know z.d != z'.d (else [8] would have held
-and we we have stopped then), and there are only 2 possible values dst() can
+and we have stopped then), and there are only 2 possible values dst() can
return in Eastern, it follows that z'.d must be 0 (which it is in the example,
but the reasoning doesn't depend on the example -- it depends on there being
two possible dst() outcomes, one zero and the other non-zero). Therefore
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index 9d798e8127..97383d603e 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -1020,7 +1020,7 @@ class DefaultCookiePolicy(CookiePolicy):
(not erhn.startswith(".") and
not ("."+erhn).endswith(domain))):
_debug(" effective request-host %s (even with added "
- "initial dot) does not end end with %s",
+ "initial dot) does not end with %s",
erhn, domain)
return False
if (cookie.version > 0 or
diff --git a/Lib/msilib/schema.py b/Lib/msilib/schema.py
index 379f1ef481..a9e167918a 100644
--- a/Lib/msilib/schema.py
+++ b/Lib/msilib/schema.py
@@ -958,7 +958,7 @@ _Validation_records = [
('ServiceInstall','StartType','N',0,4,None, None, None, None, 'Type of the service',),
('Shortcut','Name','N',None, None, None, None, 'Filename',None, 'The name of the shortcut to be created.',),
('Shortcut','Description','Y',None, None, None, None, 'Text',None, 'The description for the shortcut.',),
-('Shortcut','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table denoting the component whose selection gates the the shortcut creation/deletion.',),
+('Shortcut','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table denoting the component whose selection gates the shortcut creation/deletion.',),
('Shortcut','Icon_','Y',None, None, 'Icon',1,'Identifier',None, 'Foreign key into the File table denoting the external icon file for the shortcut.',),
('Shortcut','IconIndex','Y',-32767,32767,None, None, None, None, 'The icon index for the shortcut.',),
('Shortcut','Directory_','N',None, None, 'Directory',1,'Identifier',None, 'Foreign key into the Directory table denoting the directory where the shortcut file is created.',),
diff --git a/Lib/multiprocessing/__init__.py b/Lib/multiprocessing/__init__.py
index deb031c367..e6e16c8322 100644
--- a/Lib/multiprocessing/__init__.py
+++ b/Lib/multiprocessing/__init__.py
@@ -9,7 +9,7 @@
# wrapper for 'threading'.
#
# Try calling `multiprocessing.doc.main()` to read the html
-# documentation in in a webbrowser.
+# documentation in a webbrowser.
#
#
# Copyright (c) 2006-2008, R Oudkerk
diff --git a/Lib/sched.py b/Lib/sched.py
index f6a699c916..a119892c3f 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -94,7 +94,7 @@ class scheduler:
restarted.
It is legal for both the delay function and the action
- function to to modify the queue or to raise an exception;
+ function to modify the queue or to raise an exception;
exceptions are not caught but the scheduler's state remains
well-defined so run() may be called again.
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 03cd927498..83bb0a9cb2 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -878,7 +878,7 @@ class HandlerTests(unittest.TestCase):
def test_http_doubleslash(self):
# Checks the presence of any unnecessary double slash in url does not
# break anything. Previously, a double slash directly after the host
- # could could cause incorrect parsing.
+ # could cause incorrect parsing.
h = urllib.request.AbstractHTTPHandler()
o = h.parent = MockOpener()
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 4de190b99a..a6e7ee8e1c 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -9,7 +9,7 @@ RFC2396_BASE = "http://a/b/c/d;p?q"
RFC3986_BASE = 'http://a/b/c/d;p?q'
SIMPLE_BASE = 'http://a/b/c/d'
-# A list of test cases. Each test case is a a two-tuple that contains
+# A list of test cases. Each test case is a two-tuple that contains
# a string with the query and a dictionary with the expected result.
parse_qsl_test_cases = [
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index 04e762ad74..4ccc6ff9b6 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -295,7 +295,7 @@ def http_server(evt, numrequests, requestHandler=None):
global ADDR, PORT, URL
ADDR, PORT = serv.socket.getsockname()
#connect to IP address directly. This avoids socket.create_connection()
- #trying to connect to to "localhost" using all address families, which
+ #trying to connect to "localhost" using all address families, which
#causes slowdown e.g. on vista which supports AF_INET6. The server listens
#on AF_INET only.
URL = "http://%s:%d"%(ADDR, PORT)
@@ -354,7 +354,7 @@ def http_multi_server(evt, numrequests, requestHandler=None):
global ADDR, PORT, URL
ADDR, PORT = serv.socket.getsockname()
#connect to IP address directly. This avoids socket.create_connection()
- #trying to connect to to "localhost" using all address families, which
+ #trying to connect to "localhost" using all address families, which
#causes slowdown e.g. on vista which supports AF_INET6. The server listens
#on AF_INET only.
URL = "http://%s:%d"%(ADDR, PORT)
diff --git a/Lib/threading.py b/Lib/threading.py
index d260983452..6653f6ef65 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -435,7 +435,7 @@ class _Event(_Verbose):
# to be cyclic. Threads are not allowed into it until it has fully drained
# since the previous cycle. In addition, a 'resetting' state exists which is
# similar to 'draining' except that threads leave with a BrokenBarrierError,
-# and a 'broken' state in which all threads get get the exception.
+# and a 'broken' state in which all threads get the exception.
class Barrier(_Verbose):
"""
Barrier. Useful for synchronizing a fixed number of threads
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py
index be44a09e33..4884e2260b 100644
--- a/Lib/tkinter/tix.py
+++ b/Lib/tkinter/tix.py
@@ -1554,8 +1554,8 @@ class Tree(TixWidget):
'''This command is used to indicate whether the entry given by
entryPath has children entries and whether the children are visible. mode
must be one of open, close or none. If mode is set to open, a (+)
- indicator is drawn next the the entry. If mode is set to close, a (-)
- indicator is drawn next the the entry. If mode is set to none, no
+ indicator is drawn next the entry. If mode is set to close, a (-)
+ indicator is drawn next the entry. If mode is set to none, no
indicators will be drawn for this entry. The default mode is none. The
open mode indicates the entry has hidden children and this entry can be
opened by the user. The close mode indicates that all the children of the
@@ -1873,13 +1873,13 @@ class Grid(TixWidget, XView, YView):
return self.tk.call(self, 'info', 'bbox', x, y)
def move_column(self, from_, to, offset):
- """Moves the the range of columns from position FROM through TO by
+ """Moves the range of columns from position FROM through TO by
the distance indicated by OFFSET. For example, move_column(2, 4, 1)
moves the columns 2,3,4 to columns 3,4,5."""
self.tk.call(self, 'move', 'column', from_, to, offset)
def move_row(self, from_, to, offset):
- """Moves the the range of rows from position FROM through TO by
+ """Moves the range of rows from position FROM through TO by
the distance indicated by OFFSET.
For example, move_row(2, 4, 1) moves the rows 2,3,4 to rows 3,4,5."""
self.tk.call(self, 'move', 'row', from_, to, offset)
@@ -1938,7 +1938,7 @@ class Grid(TixWidget, XView, YView):
pad0 pixels
Specifies the paddings to the top of a row.
pad1 pixels
- Specifies the paddings to the the bottom of a row.
+ Specifies the paddings to the bottom of a row.
size val
Specifies the height of a row.
Val may be: "auto" -- the height of the row is set the
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py
index 1a6a9f46d0..928e1de781 100644
--- a/Lib/tkinter/ttk.py
+++ b/Lib/tkinter/ttk.py
@@ -37,7 +37,7 @@ def _load_tile(master):
import os
tilelib = os.environ.get('TILE_LIBRARY')
if tilelib:
- # append custom tile path to the the list of directories that
+ # append custom tile path to the list of directories that
# Tcl uses when attempting to resolve packages with the package
# command
master.tk.eval(
diff --git a/Lib/turtle.py b/Lib/turtle.py
index 8fb366a7eb..420b552e9c 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -96,7 +96,7 @@ Roughly it has the following features added:
docstrings to disc, so it can serve as a template for translations.
Behind the scenes there are some features included with possible
-extensions in in mind. These will be commented and documented elsewhere.
+extensions in mind. These will be commented and documented elsewhere.
"""