8000 Fix for docstring comment. · pythonAI/client_python@7f863dd · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f863dd

Browse files
committed
Fix for docstring comment.
1 parent eb9500b commit 7f863dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

prometheus_client/handlers/basic_auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
def handler(url, method, timeout, headers, data, username = None, password = None):
88
def handle():
9-
'''Handler that implements HTTP Basic Auth by setting auth headers if
10-
'username' and 'password' arguments are supplied and not None.'''
9+
'''Handler that implements HTTP Basic Auth.
10+
Sets auth headers using supplied 'username' and 'password', if set.
11+
'''
1112
if username is not None and password is not None:
1213
auth_value = "{0}:{1}".format(username, password)
1314
auth_header = "Basic {0}".format(base64.b64encode(bytes(auth_value)))

0 commit comments

Comments
 (0)
0