Skip to content
Myr

Move to_native_string for methods to prepare()

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

authored by Cory Benfield · committed by Cory Benfield · parent b071c49 · Browse files · 2 files+1 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

2 files+1 added−4 removed

  • other:+1 added−4 removed

2 files+1 added−4 removed

modified:requests/models.py+1 added-1 removed
317 unmodified lines
318 def prepare_method(self, method):319 """Prepares the given HTTP method."""320 self.method = method321 if self.method is not None:322 self.method = self.method.upper()322 self.method = to_native_string(self.method.upper())323324 def prepare_url(self, url, params):325 """Prepares the given HTTP URL."""326 #: Accept objects that have string representations.
522 unmodified lines
modified:requests/sessions.py-3 removed
436 unmodified lines
437 A CA_BUNDLE path can also be provided.438 :param cert: (optional) if String, path to ssl client cert file (.pem).439 If Tuple, ('cert', 'key') pair.440 """441442 method = to_native_string(method)443441 # Create the Request.442 req = Request(443 method = method.upper(),444 url = url,
236 unmodified lines