mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Remove duplication.
This commit is contained in:
parent
a5a9a9c369
commit
e130a52d8a
36 changed files with 43 additions and 43 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -2057,7 +2057,7 @@ def _name_from_offset(delta):
|
|||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1020,7 +1020,7 @@ def set_ok_domain(self, cookie, request):
|
|||
(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
|
||||
|
|
|
|||
|
|
@ -958,7 +958,7 @@
|
|||
('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.',),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ def run(self):
|
|||
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -878,7 +878,7 @@ def iterable_body():
|
|||
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()
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
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 = [
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ def get_request(self):
|
|||
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 @@ class MyRequestHandler(requestHandler):
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ def wait(self, timeout=None):
|
|||
# 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
|
||||
|
|
|
|||
|
|
@ -1554,8 +1554,8 @@ def setmode(self, entrypath, mode='none'):
|
|||
'''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 @@ def info_bbox(self, x, y):
|
|||
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 @@ def size_row(self, index, **kw):
|
|||
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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@
|
|||
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.
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue