#18741: fix more typos. Patch by Févry Thibault.

This commit is contained in:
Ezio Melotti 2013-08-17 16:11:40 +03:00
parent 9ff79f7c46
commit b5bc353b88
22 changed files with 38 additions and 36 deletions

View file

@ -246,7 +246,7 @@ def unload(name):
if sys.platform.startswith("win"):
def _waitfor(func, pathname, waitall=False):
# Peform the operation
# Perform the operation
func(pathname)
# Now setup the wait loop
if waitall:
@ -262,7 +262,7 @@ if sys.platform.startswith("win"):
# required when contention occurs.
timeout = 0.001
while timeout < 1.0:
# Note we are only testing for the existance of the file(s) in
# Note we are only testing for the existence of the file(s) in
# the contents of the directory regardless of any security or
# access rights. If we have made it this far, we have sufficient
# permissions to do that much using Python's equivalent of the

View file

@ -531,7 +531,7 @@ class TestContentTypeHeader(TestHeaderBase):
'\tname*1*=%2A%2A%2Afun%2A%2A%2A%20;\tname*2="is it not.pdf"\n'),
),
# Make sure we also handle it if there are spurrious double qoutes.
# Make sure we also handle it if there are spurious double quotes.
'rfc2231_encoded_with_double_quotes': (
("text/plain;"
'\tname*0*="us-ascii\'\'This%20is%20even%20more%20";'
@ -711,8 +711,8 @@ class TestContentTypeHeader(TestHeaderBase):
# in double quotes, making the value a valid non-encoded string. The
# old parser decodes this just like the previous case, which may be the
# better Postel rule, but could equally result in borking headers that
# intentially have quoted quotes in them. We could get this 98% right
# if we treat it as a quoted string *unless* it matches the
# intentionally have quoted quotes in them. We could get this 98%
# right if we treat it as a quoted string *unless* it matches the
# charset'lang'value pattern exactly *and* there is at least one
# encoded segment. Implementing that algorithm will require some
# refactoring, so I haven't done it (yet).
@ -944,7 +944,7 @@ class TestMIMEVersionHeader(TestHeaderBase):
[errors.InvalidHeaderDefect]),
# Unrecoverable invalid values. We *could* apply more heuristics to
# get someing out of the first two, but doing so is not worth the
# get something out of the first two, but doing so is not worth the
# effort.
'non_comment_garbage_before': (
@ -1541,13 +1541,13 @@ class TestFolding(TestHeaderBase):
def test_fold_unstructured_with_commas(self):
# The old wrapper would fold this at the commas.
h = self.make_header('Subject', "This header is intended to "
"demonstrate, in a fairly susinct way, that we now do "
"demonstrate, in a fairly succinct way, that we now do "
"not give a , special treatment in unstructured headers.")
self.assertEqual(
h.fold(policy=policy.default.clone(max_line_length=60)),
textwrap.dedent("""\
Subject: This header is intended to demonstrate, in a fairly
susinct way, that we now do not give a , special treatment
succinct way, that we now do not give a , special treatment
in unstructured headers.
"""))