Skip to content

Commit

Permalink
Dropping dummy argument for target_object.
Browse files Browse the repository at this point in the history
Had to trade-off here and use `# pylint: disable=unused-argument`.
  • Loading branch information
dhermes committed May 4, 2015
1 parent d89f684 commit 4564992
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gcloud/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def _make_request(self, method, url, data=None, content_type=None,

return self._do_request(method, url, headers, data, target_object)

def _do_request(self, method, url, headers, data, dummy):
def _do_request(self, method, url, headers, data,
target_object): # pylint: disable=unused-argument
"""Low-level helper: perform the actual API request over HTTP.
Allows batch context managers to override and defer a request.
Expand All @@ -225,9 +226,9 @@ def _do_request(self, method, url, headers, data, dummy):
:type data: string
:param data: The data to send as the body of the request.
:type dummy: object or :class:`NoneType`
:param dummy: Unused ``target_object`` here but may be used
by a superclass.
:type target_object: object or :class:`NoneType`
:param target_object: Unused ``target_object`` here but may be used
by a superclass.
:rtype: tuple of ``response`` (a dictionary of sorts)
and ``content`` (a string).
Expand Down

0 comments on commit 4564992

Please sign in to comment.