making module docstrings and coding comments consistent
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Nate Prewitt · committed by Nate Prewitt · parent 75d72ca · Browse files · 20 files·+29 added−16 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
20 files+29 added−16 removed
- tests:+19 added−6 removed
- other:+10 added−10 removed
Provenance
- Commit
15a3869- Tree
839a0ee- Author
Nate Prewitt <Nate.Prewitt@gmail.com>- Committer
Nate Prewitt <Nate.Prewitt@gmail.com>- Parent
75d72ca
20 files changed+29 added−16 removed
modified:requests/__init__.py-1 removed
36 unmodified lines37 is at <http://python-requests.org>.38 39 :copyright: (c) 2016 by Kenneth Reitz.40 :license: Apache 2.0, see LICENSE for more details.41-41 """42 43 __title__ = 'requests'44 __version__ = '2.10.0'42 unmodified linesmodified:requests/api.py-1 removed
6 unmodified lines7 This module implements the Requests API.8 9 :copyright: (c) 2012 by Kenneth Reitz.10 :license: Apache2, see LICENSE for more details.11-11 """12 13 from . import sessions14 134 unmodified linesmodified:requests/certs.py+2 added-2 removed
1 #!/usr/bin/env python2 # -*- coding: utf-8 -*-3 4 """5-certs.py6-~~~~~~~~5+requests.certs6+~~~~~~~~~~~~~~7 8 This module returns the preferred default CA certificate bundle.9 10 If you are packaging Requests, e.g., for a Linux distribution or a managed15 unmodified linesmodified:requests/compat.py+5 added-1 removed
1 # -*- coding: utf-8 -*-2 3 """4-pythoncompat4+requests.compat5+~~~~~~~~~~~~~~~6+7+This module handles import compatibility issues between Python 2 and8+Python 3.9 """10 11 from .packages import chardet12 54 unmodified linesmodified:requests/cookies.py+3 added
1 # -*- coding: utf-8 -*-2 3 """4+requests.cookies5+~~~~~~~~~~~~~~~~6+7 Compatibility code to be able to use `cookielib.CookieJar` with requests.8 9 requests.utils imports from here, so be careful with imports.10 """486 unmodified linesmodified:requests/exceptions.py-1 removed
3 unmodified lines4 requests.exceptions5 ~~~~~~~~~~~~~~~~~~~6 7 This module contains the set of Requests' exceptions.8-8 """9 from .packages.urllib3.exceptions import HTTPError as BaseHTTPError10 11 106 unmodified linesmodified:requests/hooks.py-1 removed
8 unmodified lines9 Available hooks:10 11 ``response``:12 The response generated from a Request.13-13 """14 HOOKS = ['response']15 16 def default_hooks():17 unmodified linesmodified:requests/sessions.py-1 removed
4 unmodified lines5 ~~~~~~~~~~~~~~~~6 7 This module provides a Session object to manage and persist settings across8 requests (cookies, auth, proxies).9-9 """10 import os11 from collections import Mapping12 from datetime import datetime678 unmodified linesmodified:requests/structures.py-1 removed
3 unmodified lines4 requests.structures5 ~~~~~~~~~~~~~~~~~~~6 7 Data structures that power Requests.8-8 """9 10 import collections11 94 unmodified linesmodified:requests/utils.py-1 removed
4 unmodified lines5 ~~~~~~~~~~~~~~6 7 This module provides utility functions that are used within Requests8 that are also useful for external consumption.9-9 """10 11 import cgi12 import codecs760 unmodified linesmodified:tests/testserver/server.py+2 added
1+# -*- coding: utf-8 -*-2+3 import threading4 import socket5 import select6 121 unmodified linesmodified:tests/__init__.py+1 added-1 removed
1-# coding: utf-81+# -*- coding: utf-8 -*-2 3 """Requests test package initialisation."""4 5 import warnings17 unmodified linesmodified:tests/compat.py+2 added-1 removed
1-# coding: utf-81+# -*- coding: utf-8 -*-2+3 from requests.compat import is_py34 5 6 try:15 unmodified linesmodified:tests/conftest.py+2 added-1 removed
1-# coding: utf-81+# -*- coding: utf-8 -*-2+3 import pytest4 from requests.compat import urljoin5 6 18 unmodified linesmodified:tests/test_hooks.py+2 added-1 removed
1-# coding: utf-81+# -*- coding: utf-8 -*-2+3 import pytest4 5 from requests import hooks6 17 unmodified linesmodified:tests/test_lowlevel.py+2 added
1+# -*- coding: utf-8 -*-2+3 import os4 import pytest5 import threading6 import requests52 unmodified linesmodified:tests/test_structures.py+2 added-1 removed
1-# coding: utf-81+# -*- coding: utf-8 -*-2+3 import pytest4 5 from requests.structures import CaseInsensitiveDict, LookupDict6 74 unmodified linesmodified:tests/test_testserver.py+2 added
1+# -*- coding: utf-8 -*-2+3 import threading4 import socket5 import time6 156 unmodified linesmodified:tests/test_utils.py+2 added-1 removed
1-# coding: utf-81+# -*- coding: utf-8 -*-2+3 from io import BytesIO4 5 import pytest6 from requests import compat462 unmodified linesmodified:tests/utils.py+2 added
1+# -*- coding: utf-8 -*-2+3 import contextlib4 import os5 6 13 unmodified lines