summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-02 12:44:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-02 12:44:29 (GMT)
commit4a7c03aab455613e9ba898b7cae73459fadd57ac (patch)
treed09ea360154f3e045e2f5a76a172b0e6417fc957 /Lib
parentdf8f5b56c9dc5e950f39ed0221212256a39c1835 (diff)
parentf51d715845dfede2803ef7a2e6ea4e2a03f18486 (diff)
downloadcpython-4a7c03aab455613e9ba898b7cae73459fadd57ac.zip
cpython-4a7c03aab455613e9ba898b7cae73459fadd57ac.tar.gz
cpython-4a7c03aab455613e9ba898b7cae73459fadd57ac.tar.bz2
Issue #25523: Merge a-to-an corrections from 3.5.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/sslproto.py2
-rw-r--r--Lib/asyncio/transports.py2
-rw-r--r--Lib/ctypes/test/test_random_things.py2
-rw-r--r--Lib/http/cookiejar.py2
-rw-r--r--Lib/lib2to3/fixes/fix_metaclass.py2
-rw-r--r--Lib/msilib/schema.py2
-rw-r--r--Lib/test/libregrtest/cmdline.py2
-rw-r--r--Lib/test/test_asdl_parser.py2
-rw-r--r--Lib/test/test_dict.py2
-rw-r--r--Lib/test/test_io.py2
-rw-r--r--Lib/test/test_socket.py2
-rw-r--r--Lib/test/test_userdict.py2
-rw-r--r--Lib/tkinter/__init__.py2
13 files changed, 13 insertions, 13 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py
index 0a8c090..9e08b6f 100644
--- a/Lib/asyncio/sslproto.py
+++ b/Lib/asyncio/sslproto.py
@@ -349,7 +349,7 @@ class _SSLProtocolTransport(transports._FlowControlMixin,
high-water limit. Neither value can be negative.
The defaults are implementation-specific. If only the
- high-water limit is given, the low-water limit defaults to a
+ high-water limit is given, the low-water limit defaults to an
implementation-specific value less than or equal to the
high-water limit. Setting high to zero forces low to zero as
well, and causes pause_writing() to be called whenever the
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 70b323f..03099e3 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -62,7 +62,7 @@ class WriteTransport(BaseTransport):
high-water limit. Neither value can be negative.
The defaults are implementation-specific. If only the
- high-water limit is given, the low-water limit defaults to a
+ high-water limit is given, the low-water limit defaults to an
implementation-specific value less than or equal to the
high-water limit. Setting high to zero forces low to zero as
well, and causes pause_writing() to be called whenever the
diff --git a/Lib/ctypes/test/test_random_things.py b/Lib/ctypes/test/test_random_things.py
index 4555ecd..ee5b212 100644
--- a/Lib/ctypes/test/test_random_things.py
+++ b/Lib/ctypes/test/test_random_things.py
@@ -30,7 +30,7 @@ class CallbackTracbackTestCase(unittest.TestCase):
# value is printed correctly.
#
# Changed in 0.9.3: No longer is '(in callback)' prepended to the
- # error message - instead a additional frame for the C code is
+ # error message - instead an additional frame for the C code is
# created, then a full traceback printed. When SystemExit is
# raised in a callback function, the interpreter exits.
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index b1ba72e..e215398 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -1437,7 +1437,7 @@ class CookieJar:
break
# convert RFC 2965 Max-Age to seconds since epoch
# XXX Strictly you're supposed to follow RFC 2616
- # age-calculation rules. Remember that zero Max-Age is a
+ # age-calculation rules. Remember that zero Max-Age
# is a request to discard (old and new) cookie, though.
k = "expires"
v = self._now + v
diff --git a/Lib/lib2to3/fixes/fix_metaclass.py b/Lib/lib2to3/fixes/fix_metaclass.py
index d4f99a3..f3f8708 100644
--- a/Lib/lib2to3/fixes/fix_metaclass.py
+++ b/Lib/lib2to3/fixes/fix_metaclass.py
@@ -114,7 +114,7 @@ def find_metas(cls_node):
left_node = expr_node.children[0]
if isinstance(left_node, Leaf) and \
left_node.value == '__metaclass__':
- # We found a assignment to __metaclass__.
+ # We found an assignment to __metaclass__.
fixup_simple_stmt(node, i, simple_node)
remove_trailing_newline(simple_node)
yield (node, i, simple_node)
diff --git a/Lib/msilib/schema.py b/Lib/msilib/schema.py
index a9e1679..70fe138 100644
--- a/Lib/msilib/schema.py
+++ b/Lib/msilib/schema.py
@@ -733,7 +733,7 @@ _Validation_records = [
('CustomAction','Source','Y',None, None, None, None, 'CustomSource',None, 'The table reference of the source of the code.',),
('CustomAction','Target','Y',None, None, None, None, 'Formatted',None, 'Excecution parameter, depends on the type of custom action',),
('DrLocator','Signature_','N',None, None, None, None, 'Identifier',None, 'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',),
-('DrLocator','Path','Y',None, None, None, None, 'AnyPath',None, 'The path on the user system. This is a either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
+('DrLocator','Path','Y',None, None, None, None, 'AnyPath',None, 'The path on the user system. This is either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
('DrLocator','Depth','Y',0,32767,None, None, None, None, 'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.',),
('DrLocator','Parent','Y',None, None, None, None, 'Identifier',None, 'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.',),
('DuplicateFile','File_','N',None, None, 'File',1,'Identifier',None, 'Foreign key referencing the source file to be duplicated.',),
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py
index a9cee6e..c7e990d 100644
--- a/Lib/test/libregrtest/cmdline.py
+++ b/Lib/test/libregrtest/cmdline.py
@@ -25,7 +25,7 @@ python -E -Wd -m test [options] [test_name1 ...]
EPILOG = """\
Additional option details:
--r randomizes test execution order. You can use --randseed=int to provide a
+-r randomizes test execution order. You can use --randseed=int to provide an
int seed value for the randomizer; this is useful for reproducing troublesome
test orders.
diff --git a/Lib/test/test_asdl_parser.py b/Lib/test/test_asdl_parser.py
index 7a6426a..15bc684 100644
--- a/Lib/test/test_asdl_parser.py
+++ b/Lib/test/test_asdl_parser.py
@@ -21,7 +21,7 @@ class TestAsdlParser(unittest.TestCase):
def setUpClass(cls):
# Loads the asdl module dynamically, since it's not in a real importable
# package.
- # Parses Python.asdl into a ast.Module and run the check on it.
+ # Parses Python.asdl into an ast.Module and run the check on it.
# There's no need to do this for each test method, hence setUpClass.
sys.path.insert(0, parser_dir)
loader = importlib.machinery.SourceFileLoader(
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index 2488b63..3b42414 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -603,7 +603,7 @@ class DictTest(unittest.TestCase):
# (D) subclass defines __missing__ method returning a value
# (E) subclass defines __missing__ method raising RuntimeError
# (F) subclass sets __missing__ instance variable (no effect)
- # (G) subclass doesn't define __missing__ at a all
+ # (G) subclass doesn't define __missing__ at all
class D(dict):
def __missing__(self, key):
return 42
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 465d45a..28f440d 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -15,7 +15,7 @@
################################################################################
# When writing tests for io, it's important to test both the C and Python
# implementations. This is usually done by writing a base test that refers to
-# the type it is testing as a attribute. Then it provides custom subclasses to
+# the type it is testing as an attribute. Then it provides custom subclasses to
# test both implementations. This file has lots of examples.
################################################################################
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 63cc284..1e355ea 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -4549,7 +4549,7 @@ class TestUnixDomain(unittest.TestCase):
except OSError as e:
if str(e) == "AF_UNIX path too long":
self.skipTest(
- "Pathname {0!a} is too long to serve as a AF_UNIX path"
+ "Pathname {0!a} is too long to serve as an AF_UNIX path"
.format(path))
else:
raise
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py
index 6f71d2d..b30418f 100644
--- a/Lib/test/test_userdict.py
+++ b/Lib/test/test_userdict.py
@@ -171,7 +171,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
# (D) subclass defines __missing__ method returning a value
# (E) subclass defines __missing__ method raising RuntimeError
# (F) subclass sets __missing__ instance variable (no effect)
- # (G) subclass doesn't define __missing__ at a all
+ # (G) subclass doesn't define __missing__ at all
class D(collections.UserDict):
def __missing__(self, key):
return 42
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index ea747ac..12085a9 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -1123,7 +1123,7 @@ class Misc:
return self._bind(('bind', className), sequence, func, add, 0)
def unbind_class(self, className, sequence):
- """Unbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
+ """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE
all functions."""
self.tk.call('bind', className , sequence, '')
def mainloop(self, n=0):