Skip to content

Commit

Permalink
clean up pep8 error and silly code redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Jun 19, 2013
1 parent 8a6387e commit ec39d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jarabe/webservice/accountsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _ensure_module_repository():
except Exception, e:
logging.error('%s.get_account() failed: %s' %
(service_name, e))
traceback.format_exc()
traceback.format_exc()

if account_module is not None:
_module_repository[service_name]['account'] = account_module
Expand All @@ -113,7 +113,7 @@ def get_all_accounts():
def _get_service_name(service_path):
''' service path is of the form:
/usr/share/sugar/extensions/webservice/my_service/my_service '''
return os.path.basename(os.path.basename(service_path))
return os.path.basename(service_path)


def _get_webservice_module_paths():
Expand Down

0 comments on commit ec39d1c

Please sign in to comment.