summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-07-26 18:15:45 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-07-26 18:15:45 (GMT)
commitab260049238fecff65da6af508c804f5e8a092de (patch)
tree2bdcf8461c70e3c37d3d0c7fd1193a3051ea8064 /Tools
parent44c668d15ef588d2ba020f386639231a26314775 (diff)
downloadcpython-ab260049238fecff65da6af508c804f5e8a092de.zip
cpython-ab260049238fecff65da6af508c804f5e8a092de.tar.gz
cpython-ab260049238fecff65da6af508c804f5e8a092de.tar.bz2
Use sys.exc_info()
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/webchecker/webchecker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py
index e2b4c71..2ef82c4 100755
--- a/Tools/webchecker/webchecker.py
+++ b/Tools/webchecker/webchecker.py
@@ -760,7 +760,8 @@ class MyURLopener(urllib.FancyURLopener):
try:
names = os.listdir(path)
except os.error, msg:
- raise IOError, msg, sys.exc_traceback
+ exc_type, exc_value, exc_tb = sys.exc_info()
+ raise IOError, msg, exc_tb
names.sort()
s = MyStringIO("file:"+url, {'content-type': 'text/html'})
s.write('<BASE HREF="file:%s">\n' %