diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-19 08:06:26 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-19 08:06:26 (GMT) |
commit | f10644983e88c73437703a863151593cc37a657f (patch) | |
tree | b3cf3ffcc4d27cf9f81c90efbedbc10a856db857 /Lib | |
parent | 318909b297241f9c46f25815e12d05136da57fa9 (diff) | |
parent | e130a52d8a60229f53c8bc2ea7a1f51ee592bbd7 (diff) | |
download | cpython-f10644983e88c73437703a863151593cc37a657f.zip cpython-f10644983e88c73437703a863151593cc37a657f.tar.gz cpython-f10644983e88c73437703a863151593cc37a657f.tar.bz2 |
Merge with 3.2.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/configparser.py | 2 | ||||
-rw-r--r-- | Lib/datetime.py | 2 | ||||
-rw-r--r-- | Lib/http/cookiejar.py | 2 | ||||
-rw-r--r-- | Lib/msilib/schema.py | 2 | ||||
-rw-r--r-- | Lib/multiprocessing/__init__.py | 2 | ||||
-rw-r--r-- | Lib/sched.py | 2 | ||||
-rw-r--r-- | Lib/test/test_urllib2.py | 2 | ||||
-rw-r--r-- | Lib/test/test_urlparse.py | 2 | ||||
-rw-r--r-- | Lib/test/test_xmlrpc.py | 4 | ||||
-rw-r--r-- | Lib/threading.py | 2 | ||||
-rw-r--r-- | Lib/tkinter/tix.py | 10 | ||||
-rw-r--r-- | Lib/tkinter/ttk.py | 2 | ||||
-rw-r--r-- | Lib/turtle.py | 2 |
13 files changed, 18 insertions, 18 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index b843c00..7bc4398 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -382,7 +382,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 1f8c8f7..c5eeca4 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -2053,7 +2053,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 9d798e8..97383d6 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 379f1ef..a9e1679 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 deb031c..e6e16c8 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 f6a699c..a119892 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 713a97f..84a058a 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -879,7 +879,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 4de190b..a6e7ee8 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 04e762a..4ccc6ff 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 b663232..8d505b7 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -425,7 +425,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 be44a09..4884e22 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 1a6a9f4..928e1de 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 ad75183..71a89e6 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. """ |