From d88240ba449f1c92006102adc475543d5e649ffa Mon Sep 17 00:00:00 2001 From: petar-iv <20043863+petar-iv@users.noreply.github.com> Date: Mon, 20 May 2019 09:57:11 +0300 Subject: [PATCH] Print the type of the password instead of the password itself --- requests/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/auth.py b/requests/auth.py index bdde51c7fd..34e7c8b8fc 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -50,7 +50,7 @@ def _basic_auth_str(username, password): "Non-string passwords will no longer be supported in Requests " "3.0.0. Please convert the object you've passed in ({!r}) to " "a string or bytes object in the near future to avoid " - "problems.".format(password), + "problems.".format(type(password)), category=DeprecationWarning, ) password = str(password)