From c1e46dcd00d589464a97d14b3bfc8fcf87ace707 Mon Sep 17 00:00:00 2001 From: Nikhil Manchanda Date: Tue, 3 Dec 2013 15:49:16 -0800 Subject: [PATCH] Fixed misspellings of common words Fixed misspelling of common words found by the 'misspellings' tool. Closes-Bug: #1257531 Change-Id: Ic6bedbce3a242d6e1340ecc442d29605af8be9a4 --- troveclient/base.py | 4 ++-- troveclient/compat/base.py | 4 ++-- troveclient/compat/xml.py | 4 ++-- troveclient/openstack/common/apiclient/auth.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/troveclient/base.py b/troveclient/base.py index 7f4adef7..6f9b4819 100644 --- a/troveclient/base.py +++ b/troveclient/base.py @@ -112,7 +112,7 @@ class Manager(utils.HookableMixin): try: os.makedirs(cache_dir, 0o755) except OSError: - # NOTE(kiall): This is typicaly either permission denied while + # NOTE(kiall): This is typically either permission denied while # attempting to create the directory, or the directory # already exists. Either way, don't fail. pass @@ -126,7 +126,7 @@ class Manager(utils.HookableMixin): try: setattr(self, cache_attr, open(path, mode)) except IOError: - # NOTE(kiall): This is typicaly a permission denied while + # NOTE(kiall): This is typically a permission denied while # attempting to write the cache file. pass diff --git a/troveclient/compat/base.py b/troveclient/compat/base.py index 78875223..915ec718 100644 --- a/troveclient/compat/base.py +++ b/troveclient/compat/base.py @@ -106,7 +106,7 @@ class Manager(utils.HookableMixin): try: os.makedirs(cache_dir, 0o755) except OSError: - # NOTE(kiall): This is typicaly either permission denied while + # NOTE(kiall): This is typically either permission denied while # attempting to create the directory, or the directory # already exists. Either way, don't fail. pass @@ -120,7 +120,7 @@ class Manager(utils.HookableMixin): try: setattr(self, cache_attr, open(path, mode)) except IOError: - # NOTE(kiall): This is typicaly a permission denied while + # NOTE(kiall): This is typically a permission denied while # attempting to write the cache file. pass diff --git a/troveclient/compat/xml.py b/troveclient/compat/xml.py index e01c23c2..13a6fa81 100644 --- a/troveclient/compat/xml.py +++ b/troveclient/compat/xml.py @@ -151,7 +151,7 @@ def element_to_dict(element): def standardize_json_lists(json_dict): """ In XML, we might see something like {'instances':{'instances':[...]}}, - which we must change to just {'instances':[...]} to be compatable with + which we must change to just {'instances':[...]} to be compatible with the true JSON format. If any items are dictionaries with only one item which is a list, @@ -238,7 +238,7 @@ def populate_element_from_dict(element, dict): def modify_response_types(value, type_translator): """ This will convert some string in response dictionary to ints or bool - so that our respose is compatiable with code expecting JSON style responses + so that our respose is compatible with code expecting JSON style responses """ if isinstance(value, str): if value == 'True': diff --git a/troveclient/openstack/common/apiclient/auth.py b/troveclient/openstack/common/apiclient/auth.py index 8aaeeea3..15677227 100644 --- a/troveclient/openstack/common/apiclient/auth.py +++ b/troveclient/openstack/common/apiclient/auth.py @@ -75,7 +75,7 @@ def load_plugin(auth_system): def load_plugin_from_args(args): - """Load requred plugin and populate it with options. + """Load required plugin and populate it with options. Try to guess auth system if it is not specified. Systems are tried in alphabetical order.