remove reference to uninitialized variable and extra parameter in function call

This commit is contained in:
Daniel Graña 2014-03-18 10:05:04 -03:00
parent 159a42ad5f
commit b1f1e363a4
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class Client(requests.Session):
if line:
yield line
return stream and stream_result(response) or \
return stream_result() if stream else \
self._result(response, binary=True)
return stream and self._multiplexed_socket_stream_helper(response) or \
@ -651,7 +651,7 @@ class Client(requests.Session):
response = self._post_json(u, None, headers=headers, stream=stream)
else:
response = self._post_json(u, authcfg, stream=stream)
response = self._post_json(u, None, stream=stream)
return stream and self._stream_helper(response) \
or self._result(response)