Skip to content
Myr

python 2.6 compatibiliby

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent ba6e948 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/auth.py+2 added-2 removed
37 unmodified lines
38 # for things like ints. This will be removed in 3.0.0.39 if not isinstance(username, basestring):40 warnings.warn(41 "Non-string usernames will no longer be supported in Requests "42 "3.0.0. Please convert the object you've passed in ({!r}) to "42 "3.0.0. Please convert the object you've passed in ({0!r}) to "43 "a string or bytes object in the near future to avoid "44 "problems.".format(username),45 category=DeprecationWarning,46 )
1 unmodified line
4849 if not isinstance(password, basestring):50 warnings.warn(51 "Non-string passwords will no longer be supported in Requests "52 "3.0.0. Please convert the object you've passed in ({!r}) to "52 "3.0.0. Please convert the object you've passed in ({0!r}) to "53 "a string or bytes object in the near future to avoid "54 "problems.".format(password),55 category=DeprecationWarning,56 )
232 unmodified lines