Skip to content
Myr

latin1, remove unicode_literals

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

Fixes #407

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 4a8e641 · Browse files · 1 file+1 added−3 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+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:requests/auth.py+1 added-3 removed
5 unmodified lines
67This module contains the authentication handlers for Requests.8"""910from __future__ import unicode_literals1110import time11import hashlib1213from base64 import b64encode
4 unmodified lines
1819def _basic_auth_str(username, password):20 """Returns a Basic Auth string."""2124 return 'Basic ' + b64encode(("%s:%s" % (username, password)).encode('utf-8')).strip().decode('utf-8')22 return 'Basic ' + b64encode(('%s:%s' % (username, password)).encode('latin1')).strip().decode('latin1')232425class AuthBase(object):26 """Base class that all auth implementations derive from"""
122 unmodified lines