Fix typo in keystoneclient

hypen-separated --> hyphen-separated
initialzied --> initialized
did't --> didn't
sematics --> semantics

Change-Id: I79841b76fdf7a267e325b8b9d917900ccb393c02
Closes-Bug: #1254660
This commit is contained in:
huangtianhua
2013-11-25 18:30:28 +08:00
parent d55b2ba21d
commit 272fb6ac78
3 changed files with 4 additions and 4 deletions

View File

@@ -444,7 +444,7 @@ class AuthProtocol(object):
# Token caching via memcache
self._cache = None
self._cache_initialized = False # cache already initialzied?
self._cache_initialized = False # cache already initialized?
# memcache value treatment, ENCRYPT or MAC
self._memcache_security_strategy = \
self._conf_get('memcache_security_strategy')

View File

@@ -277,7 +277,7 @@ class OpenStackIdentityShell(object):
def _find_actions(self, subparsers, actions_module):
for attr in (a for a in dir(actions_module) if a.startswith('do_')):
# I prefer to be hypen-separated instead of underscores.
# I prefer to be hyphen-separated instead of underscores.
command = attr[3:].replace('_', '-')
callback = getattr(actions_module, attr)
desc = callback.__doc__ or ''
@@ -337,7 +337,7 @@ class OpenStackIdentityShell(object):
args.os_password = getpass.getpass('OS Password: ')
except EOFError:
pass
# No password because we did't have a tty or the
# No password because we didn't have a tty or the
# user Ctl-D when prompted?
if not args.os_password:
raise exc.CommandError(

View File

@@ -25,7 +25,7 @@ from keystoneclient import exceptions
# Decorator for cli-args
def arg(*args, **kwargs):
def _decorator(func):
# Because of the sematics of decorator composition if we just append
# Because of the semantics of decorator composition if we just append
# to the options list positional options will appear to be backwards.
func.__dict__.setdefault('arguments', []).insert(0, (args, kwargs))
return func