File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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
175176if 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
180181parser = argparse .ArgumentParser (description = 'Build matplotlib docs' )
You can’t perform that action at this time.
0 commit comments