Skip to content

Commit

Permalink
Fix tests and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k committed Jul 1, 2015
1 parent 37b9023 commit 3fc37d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions libcloudcore/importer.py
Expand Up @@ -55,6 +55,4 @@ def _(*args, **kwargs):
setattr(_, "__name__", operation.name.encode("utf-8"))
attrs[operation.name] = _

driver = type(service, bases, attrs)

return driver
return type(service, bases, attrs)
2 changes: 1 addition & 1 deletion libcloudcore/serializers/json.py
Expand Up @@ -27,8 +27,8 @@ def before_call(self, request, operation, **params):
request.body = json.dumps(params)

return super(JsonSerializer, self).before_call(
operation,
request,
operation,
**params
)

Expand Down
2 changes: 1 addition & 1 deletion libcloudcore/serializers/uri.py
Expand Up @@ -22,7 +22,7 @@ def before_call(self, request, operation, **params):
request.uri = operation.uri.format(**params)

return super(UriSerializer, self).before_call(
operation,
request,
operation,
**params
)
4 changes: 2 additions & 2 deletions libcloudcore/serializers/xmlrpc.py
Expand Up @@ -32,15 +32,15 @@ def before_call(self, request, operation, **params):
)

return super(XmlrpcSerializer, self).before_call(
operation,
request,
operation,
**params
)

def after_call(self, operation, response):
try:
return xmlrpclib.loads(response.body)
except xmlrpclib.Fault:
except xmlrpclib.Fault as e:
return {
"Error": {
"Code": e.faultCode,
Expand Down

0 comments on commit 3fc37d3

Please sign in to comment.