Skip to content

Commit 6d1bb9a

Browse files
author
David Moreau Simard
committed
PEP8 and code standardization
1 parent 107f42a commit 6d1bb9a

File tree

2 files changed

+215
-123
lines changed

2 files changed

+215
-123
lines changed

cephclient/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ def _request(self, url, method, **kwargs):
9797

9898
del kwargs['body']
9999

100-
self.log.debug("{0} URL: {1}{2} - {3}".format(method,
101-
self.endpoint,
102-
url,
103-
str(kwargs)))
100+
self.log.debug("{0} URL: {1}{2} - {3}"
101+
.format(method, self.endpoint, url, str(kwargs)))
104102

105103
resp = self.http.request(
106104
method,
@@ -144,7 +142,7 @@ def log_wrapper(self):
144142
try:
145143
debug = self.params["debug"]
146144
log.setLevel(logging.DEBUG)
147-
except KeyError as e:
145+
except KeyError:
148146
log.setLevel(logging.INFO)
149147

150148
# Set the log format.

0 commit comments

Comments
 (0)