Skip to content
Myr

cleanup models.py

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent e5894e9 · Browse files · 1 file+6 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+6 added−4 removed

  • other:+6 added−4 removed

1 file+6 added−4 removed

modified:requests/models.py+6 added-4 removed
213 unmodified lines
214 >>> req.prepare()215 <PreparedRequest [GET]>216 """217218 def __init__(self, method=None, url=None, headers=None, files=None,219 data=None, params=None, auth=None, cookies=None, hooks=None, json=None):218 def __init__(self,219 method=None, url=None, headers=None, files=None, data=None,220 params=None, auth=None, cookies=None, hooks=None, json=None):221222 # Default empty dicts for dict params.223 data = [] if data is None else data224 files = [] if files is None else files
70 unmodified lines
295 self.hooks = default_hooks()296 #: integer denoting starting position of a readable file-like body.297 self._body_position = None298298 def prepare(self, method=None, url=None, headers=None, files=None,299 data=None, params=None, auth=None, cookies=None, hooks=None, json=None):299 def prepare(self,300 method=None, url=None, headers=None, files=None, data=None,301 params=None, auth=None, cookies=None, hooks=None, json=None):302 """Prepares the entire request with the given parameters."""303304 self.prepare_method(method)305 self.prepare_url(url, params)
639 unmodified lines