diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-14 15:12:31 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-14 15:12:31 -0500 |
commit | 7ade322c4e685aef1adab02ca3bad6444acc2466 (patch) | |
tree | fa581d7dd0b8698be3dad4e09c34e4ae13b25bb1 /setuptools/package_index.py | |
parent | c743916e11ca05fa36882346adba1434a696b8ee (diff) | |
download | external_python_setuptools-7ade322c4e685aef1adab02ca3bad6444acc2466.tar.gz external_python_setuptools-7ade322c4e685aef1adab02ca3bad6444acc2466.tar.bz2 external_python_setuptools-7ade322c4e685aef1adab02ca3bad6444acc2466.zip |
Update docstring to reflect failure reported in pull request #21
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index bc276a26..2e8f62e2 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -908,8 +908,13 @@ def _encode_auth(auth): """ A function compatible with Python 2.3-3.3 that will encode auth from a URL suitable for an HTTP header. - >>> _encode_auth('username%3Apassword') - u'dXNlcm5hbWU6cGFzc3dvcmQ=' + >>> str(_encode_auth('username%3Apassword')) + 'dXNlcm5hbWU6cGFzc3dvcmQ=' + + Long auth strings should not cause a newline to be inserted. + >>> long_auth = 'username:' + 'password'*10 + >>> chr(10) in str(_encode_auth(long_auth)) + False """ auth_s = unquote(auth) # convert to bytes |