File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -161,20 +161,21 @@ def all():
161
161
with open (link , 'r' ) as content :
162
162
delete = target == content .read ()
163
163
if delete :
164
- symlink_warnings .append ('deleted: doc/{}' .format (link ))
164
+ symlink_warnings .append ('deleted: doc/{0 }' .format (link ))
165
165
os .unlink (link )
166
166
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" )
168
169
if not os .path .exists (link ):
169
170
if hasattr (os , 'symlink' ):
170
171
os .symlink (target , link )
171
172
else :
172
- symlink_warnings .append ('files copied to {}' .format (link ))
173
+ symlink_warnings .append ('files copied to {0 }' .format (link ))
173
174
shutil .copytree (os .path .join (link , '..' , target ), link )
174
175
175
176
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}'
178
179
.format ('\n \t ' .join (symlink_warnings )))
179
180
180
181
parser = argparse .ArgumentParser (description = 'Build matplotlib docs' )
You can’t perform that action at this time.
0 commit comments