diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-31 00:04:24 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-31 00:04:24 (GMT) |
commit | 828f04ac3f0dd3b68b4dbf42a79ebb846d1de568 (patch) | |
tree | 21e25d3d969ce636c32539e4d4b5255dc4c85702 /Mac/Tools/Doc | |
parent | 150b7d7d02eca6970d792f3e6887f957a36b6ca2 (diff) | |
download | cpython-828f04ac3f0dd3b68b4dbf42a79ebb846d1de568.zip cpython-828f04ac3f0dd3b68b4dbf42a79ebb846d1de568.tar.gz cpython-828f04ac3f0dd3b68b4dbf42a79ebb846d1de568.tar.bz2 |
Issue #1066: implement PEP 3109, 2/3 of PEP 3134.
Diffstat (limited to 'Mac/Tools/Doc')
-rw-r--r-- | Mac/Tools/Doc/setup.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Mac/Tools/Doc/setup.py b/Mac/Tools/Doc/setup.py index 5f60c51..e1d8fb1 100644 --- a/Mac/Tools/Doc/setup.py +++ b/Mac/Tools/Doc/setup.py @@ -59,7 +59,7 @@ class DocBuild(build): dirname = 'Python-Docs-%s' % self.doc_version if os.path.exists(self.build_html): - raise RuntimeError, '%s: already exists, please remove and try again' % self.build_html + raise RuntimeError('%s: already exists, please remove and try again' % self.build_html) os.chdir(self.build_base) self.spawn('curl','-O', url) self.spawn('tar', '-xjf', tarfile) @@ -146,8 +146,7 @@ class DocBuild(build): self.mkpath(self.build_base) self.ensureHtml() if not os.path.isdir(self.build_html): - raise RuntimeError, \ - "Can't find source folder for documentation." + raise RuntimeError("Can't find source folder for documentation.") self.mkpath(self.build_dest) if dep_util.newer(os.path.join(self.build_html,'index.html'), os.path.join(self.build_dest,'index.html')): self.mkpath(self.build_dest) |