Merge "Fixed spelling mistakes in comments."

This commit is contained in:
Jenkins 2014-09-07 20:47:39 +00:00 committed by Gerrit Code Review
commit 041132ba6f
3 changed files with 9 additions and 9 deletions

View File

@ -140,7 +140,7 @@ def base64_to_base64url(text):
percent-encode
percent-encode the pad character (e.g. '=' becomes
'%3D'). This makes the base64url text fully safe. But
percent-enconding has the downside of requiring
percent-encoding has the downside of requiring
percent-decoding prior to feeding the base64url text into a
base64url decoder since most base64url decoders do not
recognize %3D as a pad character and most decoders require
@ -293,11 +293,11 @@ def base64_strip_padding(text, pad='='):
def base64_assure_padding(text, pad='='):
"""Assure the input text ends with padding.
Base64 text is normally expected to be a multple of 4
Base64 text is normally expected to be a multiple of 4
characters. Each 4 character base64 sequence produces 3 octets of
binary data. If the binary data is not a multiple of 3 the base64
text is padded at the end with a pad character such that it is
always a multple of 4. Padding is ignored and does not alter the
always a multiple of 4. Padding is ignored and does not alter the
binary data nor it's length.
In some circumstances it is desirable to omit the padding
@ -310,7 +310,7 @@ def base64_assure_padding(text, pad='='):
format RFC compliant base64, this function performs this action.
Input is assumed to consist only of members of a base64
alphabet (i.e no whitepace). Iteration yields a sequence of lines.
alphabet (i.e no whitespace). Iteration yields a sequence of lines.
The line does NOT terminate with a line ending.
Use the filter_formatting() function to assure the input text
@ -347,7 +347,7 @@ def base64_wrap_iter(text, width=64):
"""Fold text into lines of text with max line length.
Input is assumed to consist only of members of a base64
alphabet (i.e no whitepace). Iteration yields a sequence of lines.
alphabet (i.e no whitespace). Iteration yields a sequence of lines.
The line does NOT terminate with a line ending.
Use the filter_formatting() function to assure the input text
@ -369,7 +369,7 @@ def base64_wrap(text, width=64):
"""Fold text into lines of text with max line length.
Input is assumed to consist only of members of a base64
alphabet (i.e no whitepace). Fold the text into lines whose
alphabet (i.e no whitespace). Fold the text into lines whose
line length is width chars long, terminate each line with line
ending (default is '\\n'). Return the wrapped text as a single
string.

View File

@ -244,7 +244,7 @@ FILE_OPTIONS = {
default='keystone.token.persistence.backends.sql.Token',
help='Token persistence backend driver.'),
cfg.BoolOpt('caching', default=True,
help='Toggle for token system cacheing. This has no '
help='Toggle for token system caching. This has no '
'effect unless global caching is enabled.'),
cfg.IntOpt('revocation_cache_time', default=3600,
help='Time to cache the revocation list and the revocation '
@ -281,7 +281,7 @@ FILE_OPTIONS = {
'expiration before a revocation event may be removed '
'from the backend.'),
cfg.BoolOpt('caching', default=True,
help='Toggle for revocation event cacheing. This has no '
help='Toggle for revocation event caching. This has no '
'effect unless global caching is enabled.'),
],
'cache': [

View File

@ -45,7 +45,7 @@ class IDGenerator(object):
:param dict mapping: The items to be hashed.
The ID must be reproduceable and no more than 64 chars in length.
The ID generated should be independant of the order of the items
The ID generated should be independent of the order of the items
in the mapping dict.
"""