Skip to content
Myr

Normalize exception docstrings (#5338)

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

authored by Redowan Delowar · committed by GitHub · parent b7c6aba · Browse files · 1 file+3 added−6 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+3 added−6 removed

  • other:+3 added−6 removed

1 file+3 added−6 removed

modified:requests/exceptions.py+3 added-6 removed
92 unmodified lines
93 """The server declared chunked encoding but sent an invalid chunk."""949596class ContentDecodingError(RequestException, BaseHTTPError):97 """Failed to decode response content"""97 """Failed to decode response content."""9899100class StreamConsumedError(RequestException, TypeError):101 """The content for this response was already consumed"""101 """The content for this response was already consumed."""102103104class RetryError(RequestException):105 """Custom retries logic failed"""106107108class UnrewindableBodyError(RequestException):109 """Requests encountered an error when trying to rewind a body"""109 """Requests encountered an error when trying to rewind a body."""110111# Warnings112113114class RequestsWarning(Warning):115 """Base warning for Requests."""116 pass116117118class FileModeWarning(RequestsWarning, DeprecationWarning):119 """A file was opened in text mode, but Requests determined its binary length."""121 pass120121122class RequestsDependencyWarning(RequestsWarning):123 """An imported dependency doesn't match the expected version range."""126 pass