Skip to content

Commit

Permalink
making module docstrings and coding comments consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Jul 19, 2016
1 parent 75d72ca commit 15a3869
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 16 deletions.
1 change: 0 additions & 1 deletion requests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
:copyright: (c) 2016 by Kenneth Reitz.
:license: Apache 2.0, see LICENSE for more details.
"""

__title__ = 'requests'
Expand Down
1 change: 0 additions & 1 deletion requests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""

from . import sessions
Expand Down
4 changes: 2 additions & 2 deletions requests/certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# -*- coding: utf-8 -*-

"""
certs.py
~~~~~~~~
requests.certs
~~~~~~~~~~~~~~
This module returns the preferred default CA certificate bundle.
Expand Down
6 changes: 5 additions & 1 deletion requests/compat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# -*- coding: utf-8 -*-

"""
pythoncompat
requests.compat
~~~~~~~~~~~~~~~
This module handles import compatibility issues between Python 2 and
Python 3.
"""

from .packages import chardet
Expand Down
3 changes: 3 additions & 0 deletions requests/cookies.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-

"""
requests.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
Expand Down
1 change: 0 additions & 1 deletion requests/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
"""
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError

Expand Down
1 change: 0 additions & 1 deletion requests/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
``response``:
The response generated from a Request.
"""
HOOKS = ['response']

Expand Down
1 change: 0 additions & 1 deletion requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
"""
import os
from collections import Mapping
Expand Down
1 change: 0 additions & 1 deletion requests/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
"""

import collections
Expand Down
1 change: 0 additions & 1 deletion requests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
This module provides utility functions that are used within Requests
that are also useful for external consumption.
"""

import cgi
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: utf-8 -*-

"""Requests test package initialisation."""

Expand Down
3 changes: 2 additions & 1 deletion tests/compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8
# -*- coding: utf-8 -*-

from requests.compat import is_py3


Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8
# -*- coding: utf-8 -*-

import pytest
from requests.compat import urljoin

Expand Down
3 changes: 2 additions & 1 deletion tests/test_hooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8
# -*- coding: utf-8 -*-

import pytest

from requests import hooks
Expand Down
2 changes: 2 additions & 0 deletions tests/test_lowlevel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

import os
import pytest
import threading
Expand Down
3 changes: 2 additions & 1 deletion tests/test_structures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8
# -*- coding: utf-8 -*-

import pytest

from requests.structures import CaseInsensitiveDict, LookupDict
Expand Down
2 changes: 2 additions & 0 deletions tests/test_testserver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

import threading
import socket
import time
Expand Down
3 changes: 2 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8
# -*- coding: utf-8 -*-

from io import BytesIO

import pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/testserver/server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

import threading
import socket
import select
Expand Down
2 changes: 2 additions & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

import contextlib
import os

Expand Down

0 comments on commit 15a3869

Please sign in to comment.