Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6155084

Browse files
committed
Doc directory formats converted
1 parent8a270fc commit6155084

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎doc/make.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,21 @@ def all():
161161
withopen(link,'r')ascontent:
162162
delete=target==content.read()
163163
ifdelete:
164-
symlink_warnings.append('deleted: doc/{}'.format(link))
164+
symlink_warnings.append('deleted: doc/{0}'.format(link))
165165
os.unlink(link)
166166
else:
167-
raiseRuntimeError("doc/{} should be a directory or symlink -- it isn't")
167+
raiseRuntimeError("doc/{0} should be a directory or symlink -- it"
168+
" isn't")
168169
ifnotos.path.exists(link):
169170
ifhasattr(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
ifsys.platform=='win32'andlen(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)

[8]ページ先頭

©2009-2025 Movatter.jp