Skip to content
Myr

Merge pull request #4683 from martindurant/docstrings_for_optimize

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

Do not alter status_codes docstring if it is None

authored by Ian Stapleton Cordasco · committed by GitHub · parents 991e8b7, 8031ec7 · Browse files · 1 file+2 added−1 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−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/status_codes.py+2 added-1 removed
112 unmodified lines
113 return '* %d: %s' % (code, names)114115 global __doc__116 __doc__ = (__doc__ + '\n' +117 '\n'.join(doc(code) for code in sorted(_codes)))117 '\n'.join(doc(code) for code in sorted(_codes))118 if __doc__ is not None else None)119120_init()