Fix typos picked up by misspellings

Joe Gordon has introduced a module named misspellings which can check
typo automatically.

$ pip install misspellings
$ git ls-files | grep -v locale | misspellings -f -

Change-Id: I9eca2e097b03468651814fa563e4380fd573205e
ref: http://lists.openstack.org/pipermail/openstack-dev/2013-December/020975.html
This commit is contained in:
ZhiQiang Fan
2014-01-23 17:50:44 +08:00
parent c0497d8011
commit cad358f5b2
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ def cli_to_array(cli_query):
for q in queries:
frag = split_by_op(q)
if len(frag) > 1:
raise ValueError('incorrect seperator %s in query "%s"' %
raise ValueError('incorrect separator %s in query "%s"' %
('(should be ";")', q))
if len(frag) == 0:
raise ValueError('invalid query %s' % q)

View File

@@ -271,7 +271,7 @@ def common_alarm_arguments(create=False):
@utils.arg('--insufficient-data-action',
dest='insufficient_data_actions',
metavar='<Webhook URL>', action='append', default=None,
help=('URL to invoke when state transitions to unkown. '
help=('URL to invoke when state transitions to unknown. '
'May be used multiple times.'))
@functools.wraps(func)
def _wrapped(*args, **kwargs):