Skip to content
Myr

Adding check when _enc_data in None

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mike Waldner · committed by Mike Waldner · parent 84d9ff0 · Browse files · 1 file+2 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−4 removed

  • other:+2 added−4 removed

1 file+2 added−4 removed

modified:requests/models.py+2 added-4 removed
389 unmodified lines
390391 #TODO - Auth with User names and accounts392 #TODO - Files393 #TODO - OAuth394 #TODO - Cookies?395396 #: -L/--location - if there is a redirect, redo request on the new place397 curl_cmd = 'curl -L '398
11 unmodified lines
410411 data = ''412 if self.method in ('PUT', 'POST', 'PATCH'):413 #: -d/--data - send specified data in post request.413 #: '-d name=John -d last=Doe' generates the414 #: post chunk 'name=John&last=Doe'415414 if isinstance(self.data, (list, tuple)):415 data = data.join(['-d ' + key + '=' + value + ' ' for key, value in self.data])418 else:416 elif self._enc_data is not None:417 data = '-d ' + self._enc_data + ' '418419 #: Params handled in _build_url420 return curl_cmd + method_opt + data + header + '"' + self._build_url() + '"'
262 unmodified lines