Skip to content

Commit 6155084

Browse files
committed
Doc directory formats converted
1 parent 8a270fc commit 6155084

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/make.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,21 @@ def all():
161161
with open(link, 'r') as content:
162162
delete = target == content.read()
163163
if delete:
164-
symlink_warnings.append('deleted: doc/{}'.format(link))
164+
symlink_warnings.append('deleted: doc/{0}'.format(link))
165165
os.unlink(link)
166166
else:
167-
raise RuntimeError("doc/{} should be a directory or symlink -- it isn't")
167+
raise RuntimeError("doc/{0} should be a directory or symlink -- it"
168+
" isn't")
168169
if not os.path.exists(link):
169170
if hasattr(os, 'symlink'):
170171
os.symlink(target, link)
171172
else:
172-
symlink_warnings.append('files copied to {}'.format(link))
173+
symlink_warnings.append('files copied to {0}'.format(link))
173174
shutil.copytree(os.path.join(link, '..', target), link)
174175

175176
if sys.platform == 'win32' and len(symlink_warnings) > 0:
176-
print('The following items related to symlinks will show up '+
177-
'as spurious changes in your \'git status\':\n\t{}'
177+
print('The following items related to symlinks will show up '
178+
'as spurious changes in your \'git status\':\n\t{0}'
178179
.format('\n\t'.join(symlink_warnings)))
179180

180181
parser = argparse.ArgumentParser(description='Build matplotlib docs')

0 commit comments

Comments
 (0)