aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-08 19:06:03 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-08 19:06:03 -0500
commit59e47d76244bf25a9c385800328394e97be74b48 (patch)
tree655c73f7f9e2de2df6b6872b52484e8cc0639d12 /setuptools/package_index.py
parentbb967deca4ff251c5aa8f0404b1223e94d9a301b (diff)
downloadexternal_python_setuptools-59e47d76244bf25a9c385800328394e97be74b48.tar.gz
external_python_setuptools-59e47d76244bf25a9c385800328394e97be74b48.tar.bz2
external_python_setuptools-59e47d76244bf25a9c385800328394e97be74b48.zip
Update syntax for modern style
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index dd2df229..330b8391 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -1031,12 +1031,12 @@ def local_open(url):
elif path.endswith('/') and os.path.isdir(filename):
files = []
for f in os.listdir(filename):
- if f=='index.html':
- with open(os.path.join(filename,f),'r') as fp:
+ if f == 'index.html':
+ with open(os.path.join(filename, f), 'r') as fp:
body = fp.read()
break
- elif os.path.isdir(os.path.join(filename,f)):
- f+='/'
+ elif os.path.isdir(os.path.join(filename, f)):
+ f += '/'
files.append('<a href="{name}">{name}</a>'.format(name=f))
else:
body = ("<html><head><title>%s</title>" % url) + \