Skip to content

Commit

Permalink
small pylint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Jun 14, 2016
1 parent 1ed0955 commit f229482
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CloudFlare/api_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def api_extras(self, extras=None):
if element == parts[0][-1] and len(parts) > 1:
api_call_part1 = '/'.join(element_path)
api_call_part2 = '/'.join(parts[1])
setattr(m, parts[1][0], self._client_with_auth(self.base, api_call_part1, api_call_part2))
setattr(m, parts[1][0],
self._client_with_auth(self.base, api_call_part1, api_call_part2))
current = m
continue
except:
Expand All @@ -46,9 +47,11 @@ def api_extras(self, extras=None):
# last element
api_call_part1 = '/'.join(element_path)
api_call_part2 = '/'.join(parts[1])
setattr(current, element, self._client_with_auth(self.base, api_call_part1, api_call_part2))
setattr(current, element,
self._client_with_auth(self.base, api_call_part1, api_call_part2))
else:
api_call_part1 = '/'.join(element_path)
setattr(current, element, self._client_with_auth(self.base, api_call_part1))
setattr(current, element,
self._client_with_auth(self.base, api_call_part1))
current = getattr(current, element)

0 comments on commit f229482

Please sign in to comment.