Skip to content

Commit

Permalink
Rename helper function to communiate intent.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Feb 18, 2015
1 parent e87e021 commit 6261272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcloud/storage/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def finish(self):

_req = self._connection._make_request
response, content = _req('POST', url, data=payload, headers=headers)
self._responses = list(_crack_mime_response(response, content))
self._responses = list(_unpack_batch_response(response, content))
return self._responses

def __enter__(self):
Expand All @@ -138,7 +138,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
_BATCHES.pop()


def _crack_mime_response(response, content):
def _unpack_batch_response(response, content):
"""Convert response, content -> [(status, reason, payload)]."""
parser = Parser()
faux_message = ('Content-Type: %s\nMIME-Version: 1.0\n\n%s' %
Expand Down Expand Up @@ -202,7 +202,7 @@ def reset(self):

def finalize(self):
"""Return the deferred requests.
First restores the connection's ``http`` via ``reset()``.
"""
self.reset()
Expand Down

0 comments on commit 6261272

Please sign in to comment.