aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-08 19:04:13 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-08 19:04:13 -0500
commitbb967deca4ff251c5aa8f0404b1223e94d9a301b (patch)
tree47681370c9a867950d964f6672d9b0ee1f09bb1d /setuptools/package_index.py
parent2086ae7b381287872add8fe9a91b74498d501679 (diff)
downloadexternal_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-xsetuptools/package_index.py2
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)