From 22ce8451a86079c55c19990878068607b0852ee7 Mon Sep 17 00:00:00 2001 From: rahulram Date: Wed, 26 Aug 2015 11:45:07 -0700 Subject: [PATCH] Fix Typos in comments Change-Id: Ib66ec89f6e556093ab00d3f7fb8ad0f3d9912461 --- glanceclient/common/https.py | 2 +- glanceclient/exc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glanceclient/common/https.py b/glanceclient/common/https.py index a0120bc1..032cde77 100644 --- a/glanceclient/common/https.py +++ b/glanceclient/common/https.py @@ -258,7 +258,7 @@ class VerifiedHTTPSConnection(HTTPSConnection): excp_lst = (TypeError, FileNotFoundError, ssl.SSLError) else: # NOTE(jamespage) - # Accomodate changes in behaviour for pep-0467, introduced + # Accommodate changes in behaviour for pep-0467, introduced # in python 2.7.9. # https://github.com/python/peps/blob/master/pep-0476.txt excp_lst = (TypeError, IOError, ssl.SSLError) diff --git a/glanceclient/exc.py b/glanceclient/exc.py index 06a91262..29189e4d 100644 --- a/glanceclient/exc.py +++ b/glanceclient/exc.py @@ -155,7 +155,7 @@ def from_response(response, body=None): """Return an instance of an HTTPException based on httplib response.""" cls = _code_map.get(response.status_code, HTTPException) if body and 'json' in response.headers['content-type']: - # Iterate over the nested objects and retreive the "message" attribute. + # Iterate over the nested objects and retrieve the "message" attribute. messages = [obj.get('message') for obj in response.json().values()] # Join all of the messages together nicely and filter out any objects # that don't have a "message" attr.