Skip to content
Myr

slice function removed

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

authored by dbairaktaris1 · committed by dbairaktaris1 · parent cb09144 · 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/utils.py+2 added-4 removed
463 unmodified lines
464 if param:465 key, value = param, True466 index_of_equals = param.find("=")467 if index_of_equals != -1:468 before_equals = slice(0, index_of_equals)469 after_equals = slice(index_of_equals + 1, len(param))470 key = param[before_equals].strip(items_to_strip)471 value = param[after_equals].strip(items_to_strip)468 key = param[:index_of_equals].strip(items_to_strip)469 value = param[index_of_equals + 1:].strip(items_to_strip)470 params_dict[key] = value471 return content_type, params_dict472473
499 unmodified lines