Skip to content
Myr

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

20 files+29 added−16 removed

modified:requests/__init__.py-1 removed
36 unmodified lines
37is at <http://python-requests.org>.3839:copyright: (c) 2016 by Kenneth Reitz.40:license: Apache 2.0, see LICENSE for more details.4141"""4243__title__ = 'requests'44__version__ = '2.10.0'
42 unmodified lines
modified:requests/api.py-1 removed
6 unmodified lines
7This module implements the Requests API.89:copyright: (c) 2012 by Kenneth Reitz.10:license: Apache2, see LICENSE for more details.1111"""1213from . import sessions14
134 unmodified lines
modified:requests/certs.py+2 added-2 removed
1#!/usr/bin/env python2# -*- coding: utf-8 -*-34"""5certs.py6~~~~~~~~5requests.certs6~~~~~~~~~~~~~~78This module returns the preferred default CA certificate bundle.910If you are packaging Requests, e.g., for a Linux distribution or a managed
15 unmodified lines
modified:requests/compat.py+5 added-1 removed
1# -*- coding: utf-8 -*-23"""4pythoncompat4requests.compat5~~~~~~~~~~~~~~~67This module handles import compatibility issues between Python 2 and8Python 3.9"""1011from .packages import chardet12
54 unmodified lines
modified:requests/cookies.py+3 added
1# -*- coding: utf-8 -*-23"""4requests.cookies5~~~~~~~~~~~~~~~~67Compatibility code to be able to use `cookielib.CookieJar` with requests.89requests.utils imports from here, so be careful with imports.10"""
486 unmodified lines
modified:requests/exceptions.py-1 removed
3 unmodified lines
4requests.exceptions5~~~~~~~~~~~~~~~~~~~67This module contains the set of Requests' exceptions.88"""9from .packages.urllib3.exceptions import HTTPError as BaseHTTPError1011
106 unmodified lines
modified:requests/hooks.py-1 removed
8 unmodified lines
9Available hooks:1011``response``:12 The response generated from a Request.1313"""14HOOKS = ['response']1516def default_hooks():
17 unmodified lines
modified:requests/sessions.py-1 removed
4 unmodified lines
5~~~~~~~~~~~~~~~~67This module provides a Session object to manage and persist settings across8requests (cookies, auth, proxies).99"""10import os11from collections import Mapping12from datetime import datetime
678 unmodified lines
modified:requests/structures.py-1 removed
3 unmodified lines
4requests.structures5~~~~~~~~~~~~~~~~~~~67Data structures that power Requests.88"""910import collections11
94 unmodified lines
modified:requests/utils.py-1 removed
4 unmodified lines
5~~~~~~~~~~~~~~67This module provides utility functions that are used within Requests8that are also useful for external consumption.99"""1011import cgi12import codecs
760 unmodified lines
modified:tests/testserver/server.py+2 added
1# -*- coding: utf-8 -*-23import threading4import socket5import select6
121 unmodified lines
modified:tests/__init__.py+1 added-1 removed
1# coding: utf-81# -*- coding: utf-8 -*-23"""Requests test package initialisation."""45import warnings
17 unmodified lines
modified:tests/compat.py+2 added-1 removed
1# coding: utf-81# -*- coding: utf-8 -*-23from requests.compat import is_py3456try:
15 unmodified lines
modified:tests/conftest.py+2 added-1 removed
1# coding: utf-81# -*- coding: utf-8 -*-23import pytest4from requests.compat import urljoin56
18 unmodified lines
modified:tests/test_hooks.py+2 added-1 removed
1# coding: utf-81# -*- coding: utf-8 -*-23import pytest45from requests import hooks6
17 unmodified lines
modified:tests/test_lowlevel.py+2 added
1# -*- coding: utf-8 -*-23import os4import pytest5import threading6import requests
52 unmodified lines
modified:tests/test_structures.py+2 added-1 removed
1# coding: utf-81# -*- coding: utf-8 -*-23import pytest45from requests.structures import CaseInsensitiveDict, LookupDict6
74 unmodified lines
modified:tests/test_testserver.py+2 added
1# -*- coding: utf-8 -*-23import threading4import socket5import time6
156 unmodified lines
modified:tests/test_utils.py+2 added-1 removed
1# coding: utf-81# -*- coding: utf-8 -*-23from io import BytesIO45import pytest6from requests import compat
462 unmodified lines
modified:tests/utils.py+2 added
1# -*- coding: utf-8 -*-23import contextlib4import os56
13 unmodified lines