diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-08 19:04:13 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-08 19:04:13 -0500 |
commit | bb967deca4ff251c5aa8f0404b1223e94d9a301b (patch) | |
tree | 47681370c9a867950d964f6672d9b0ee1f09bb1d /setuptools/package_index.py | |
parent | 2086ae7b381287872add8fe9a91b74498d501679 (diff) | |
download | external_python_setuptools-bb967deca4ff251c5aa8f0404b1223e94d9a301b.tar.gz external_python_setuptools-bb967deca4ff251c5aa8f0404b1223e94d9a301b.tar.bz2 external_python_setuptools-bb967deca4ff251c5aa8f0404b1223e94d9a301b.zip |
Don't rely on repr for an HTML attribute value (could end up with 'u' prefix). Fixes #471.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index cabf1039..dd2df229 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -1037,7 +1037,7 @@ def local_open(url): break elif os.path.isdir(os.path.join(filename,f)): f+='/' - files.append("<a href=%r>%s</a>" % (f,f)) + files.append('<a href="{name}">{name}</a>'.format(name=f)) else: body = ("<html><head><title>%s</title>" % url) + \ "</head><body>%s</body></html>" % '\n'.join(files) |