Skip to content
Myr

Fixed some typos (#3892)

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

* Fixed some typos

authored by Victor Pfautz · committed by Cory Benfield · parent 45a2977 · Browse files · 2 files+2 added−2 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+2 added−2 removed

  • tests:+1 added−1 removed
  • other:+1 added−1 removed

2 files+2 added−2 removed

modified:requests/utils.py+1 added-1 removed
857 unmodified lines
858 if body_seek is not None and isinstance(prepared_request._body_position, integer_types):859 try:860 body_seek(prepared_request._body_position)861 except (IOError, OSError):862 raise UnrewindableBodyError("An error occured when rewinding request "862 raise UnrewindableBodyError("An error occurred when rewinding request "863 "body for redirect.")864 else:865 raise UnrewindableBodyError("Unable to rewind request body for redirect.")
modified:tests/test_requests.py+1 added-1 removed
1558 unmodified lines
15591560 with pytest.raises(UnrewindableBodyError) as e:1561 requests.utils.rewind_body(prep)15621563 assert 'error occured when rewinding request body' in str(e)1563 assert 'error occurred when rewinding request body' in str(e)15641565 def test_rewind_body_failed_tell(self):1566 class BadFileObj:1567 def __init__(self, data):
771 unmodified lines