Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
fix indentation style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shahms committed Mar 13, 2013
1 parent f83bae4 commit c688261
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions boto/gce/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def get_oauth2_credentials():
Return oauth2 credentials, running the configured flow if necessary.
"""
try:
client_secrets = _get_config('Credentials', 'gce_client_secrets_file')
credentials_file = _get_config('Credentials', 'gce_credentials_file')
except ConfigError:
raise RuntimeError('OAuth2 credentials missing.')
client_secrets = _get_config('Credentials', 'gce_client_secrets_file')
credentials_file = _get_config('Credentials', 'gce_credentials_file')
except KeyError:
raise RuntimeError('OAuth2 credentials missing.')

storage = Storage(credentials_file)
credentials = storage.get()
Expand Down
14 changes: 7 additions & 7 deletions boto/gce/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ def __repr__(self):
return 'Resource(%s)' % vars(self)

def __eq__(self, other):
if type(other) is not type(self):
return NotImplemented
return vars(self) == vars(other)
if type(other) is not type(self):
return NotImplemented
return vars(self) == vars(other)

def __ne__(self, other):
result = self.__eq__(other)
if result is NotImplemented:
return result
return not result
result = self.__eq__(other)
if result is NotImplemented:
return result
return not result


def _iteritems(possible_dict):
Expand Down

0 comments on commit c688261

Please sign in to comment.