Commit eed8cf76 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Use sys.exc_info()

parent 147798f4
......@@ -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' %
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment