Skip to content

Commit 1f14c40

Browse files
committed
Remove docstring.
1 parent c351ca7 commit 1f14c40

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

aiohttp/helpers.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,7 @@ def __new__(cls, login, password='', encoding='latin1'):
4646
@classmethod
4747
def decode(cls, auth_header, encoding='latin1'):
4848
"""Create a :class:`BasicAuth` object from an ``Authorization`` HTTP
49-
header.
50-
51-
:param auth_header: The value of the ``Authorization`` header.
52-
:type auth_header: str
53-
:param encoding: The character encoding used on the password.
54-
:type encoding: str
55-
56-
:returns: The decoded authentication.
57-
:rtype: :class:`BasicAuth`
58-
59-
:raises ValueError: if the headers are unable to be decoded.
60-
61-
"""
49+
header."""
6250
split = auth_header.strip().split(' ')
6351
if len(split) == 2:
6452
if split[0].strip().lower() != 'basic':

docs/client_reference.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,10 +1290,13 @@ BasicAuth
12901290
e.g. *auth* parameter for :meth:`ClientSession.request`.
12911291

12921292

1293-
.. classmethod:: decode()
1293+
.. classmethod:: decode(auth_header, encoding='latin1')
12941294

12951295
Decode HTTP basic authentication credentials.
12961296

1297+
:param str auth_header: The ``Authorization`` header to decode.
1298+
:param str encoding: (optional) encoding ('latin1' by default)
1299+
12971300
:return: decoded authentication data, :class:`BasicAuth`.
12981301

12991302

0 commit comments

Comments
 (0)