Fixed spelling mistakes in comments.

Change-Id: I9b17bcee430c94993c20a74fbd774547d04dc189
This commit is contained in:
saranjan 2014-09-03 15:18:21 -07:00
parent 8661e941ab
commit 7b5064232b
4 changed files with 11 additions and 11 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

@ -338,7 +338,7 @@ class LDAPHandler(object):
conversions and then calls another LDAP API which is configurable
(e.g. either python-ldap or the fake emulation).
We have an addtional constraint at the time of this writing due to
We have an additional constraint at the time of this writing due to
limitations in the logging module. The logging module is not
capable of accepting UTF-8 encoded strings, it will throw an
encoding exception. Therefore all logging MUST be performed prior
@ -710,7 +710,7 @@ class PooledLDAPHandler(LDAPHandler):
def get_option(self, option):
value = self.conn_options.get(option)
# if option was not specified explictly, then use connection default
# if option was not specified explicitly, then use connection default
# value for that option if there.
if value is None:
with self._get_pool_connection() as conn:

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.
"""