From 98ab83fe92b532c25dd5d1da3eb18ce97fbc4d14 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 2 May 2014 16:12:20 +0200 Subject: [PATCH] fixed typos found by RETF rules rules are avaialble at https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos Change-Id: I67fb3e0d02c931cb7e605ac74ea8272956afa8e1 --- keystoneclient/auth/identity/v3.py | 2 +- keystoneclient/service_catalog.py | 2 +- keystoneclient/session.py | 4 ++-- keystoneclient/utils.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/keystoneclient/auth/identity/v3.py b/keystoneclient/auth/identity/v3.py index 747bbda6..53ec982d 100644 --- a/keystoneclient/auth/identity/v3.py +++ b/keystoneclient/auth/identity/v3.py @@ -249,7 +249,7 @@ class TokenMethod(AuthMethod): _method_parameters = ['token'] def __init__(self, **kwargs): - """Construct a Auth plugin to fetch a token from a token. + """Construct an Auth plugin to fetch a token from a token. :param string token: Token for authentication. """ diff --git a/keystoneclient/service_catalog.py b/keystoneclient/service_catalog.py index 3018e346..a3ff3714 100644 --- a/keystoneclient/service_catalog.py +++ b/keystoneclient/service_catalog.py @@ -30,7 +30,7 @@ class ServiceCatalog(object): @classmethod def factory(cls, resource_dict, token=None, region_name=None): - """Create ServiceCatalog object given a auth token.""" + """Create ServiceCatalog object given an auth token.""" if ServiceCatalogV3.is_valid(resource_dict): return ServiceCatalogV3(token, resource_dict, region_name) elif ServiceCatalogV2.is_valid(resource_dict): diff --git a/keystoneclient/session.py b/keystoneclient/session.py index 91721052..4a43a183 100644 --- a/keystoneclient/session.py +++ b/keystoneclient/session.py @@ -129,7 +129,7 @@ class Session(object): provided such that the base URL can be determined. If a fully qualified URL is provided then endpoint_filter will be ignored. - :param string method: The http method to use. (eg. 'GET', 'POST') + :param string method: The http method to use. (e.g. 'GET', 'POST') :param string original_ip: Mark this request as forwarded for this ip. (optional) :param dict headers: Headers to be included in the request. (optional) @@ -186,7 +186,7 @@ class Session(object): headers['X-Auth-Token'] = token - # if we are passed a fully qualified URL and a endpoint_filter we + # if we are passed a fully qualified URL and an endpoint_filter we # should ignore the filter. This will make it easier for clients who # want to overrule the default endpoint_filter data added to all client # requests. We check fully qualified here by the presence of a host. diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index 01f134ee..a6c03f5e 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -65,7 +65,7 @@ def print_list(objs, fields, formatters={}, order_by=None): def _word_wrap(string, max_length=0): - """wrap long strings to be no longer then max_length.""" + """wrap long strings to be no longer than max_length.""" if max_length <= 0: return string return '\n'.join([string[i:i + max_length] for i in