Skip to content

Commit 6261272

Browse files
committed
1 parent e87e021 commit 6261272

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gcloud/storage/batch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def finish(self):
121121

122122
_req = self._connection._make_request
123123
response, content = _req('POST', url, data=payload, headers=headers)
124-
self._responses = list(_crack_mime_response(response, content))
124+
self._responses = list(_unpack_batch_response(response, content))
125125
return self._responses
126126

127127
def __enter__(self):
@@ -138,7 +138,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
138138
_BATCHES.pop()
139139

140140

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

203203
def finalize(self):
204204
"""Return the deferred requests.
205-
205+
206206
First restores the connection's ``http`` via ``reset()``.
207207
"""
208208
self.reset()

0 commit comments

Comments
 (0)