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 /Tools | |
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 'Tools')
-rwxr-xr-x | Tools/webchecker/webchecker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py index 5b97851..6ad92b2 100755 --- a/Tools/webchecker/webchecker.py +++ b/Tools/webchecker/webchecker.py @@ -267,7 +267,7 @@ class Checker: def setflags(self, **kw): for key in kw.keys(): if key not in self.validflags: - raise NameError, "invalid keyword argument: %s" % str(key) + raise NameError("invalid keyword argument: %s" % str(key)) for key, value in kw.items(): setattr(self, key, value) @@ -761,7 +761,7 @@ class MyURLopener(urllib.FancyURLopener): names = os.listdir(path) except os.error as msg: exc_type, exc_value, exc_tb = sys.exc_info() - raise IOError, msg, exc_tb + raise IOError(msg).with_traceback(exc_tb) names.sort() s = MyStringIO("file:"+url, {'content-type': 'text/html'}) s.write('<BASE HREF="file:%s">\n' % |