Merge pull request #5099 from petar-iv/password-no-print

Print the type of the password instead of the password itself
This commit is contained in:
Buğra İşgüzar
2019-05-20 18:35:41 +03:00
committed by GitHub
+1 -1
View File
@@ -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)