[Python-checkins] r50851 - python/trunk/Tools/webchecker/webchecker.py

andrew.kuchling python-checkins at python.org
Wed Jul 26 20:15:46 CEST 2006


Author: andrew.kuchling
Date: Wed Jul 26 20:15:45 2006
New Revision: 50851

Modified:
   python/trunk/Tools/webchecker/webchecker.py
Log:
Use sys.exc_info()

Modified: python/trunk/Tools/webchecker/webchecker.py
==============================================================================
--- python/trunk/Tools/webchecker/webchecker.py	(original)
+++ python/trunk/Tools/webchecker/webchecker.py	Wed Jul 26 20:15:45 2006
@@ -760,7 +760,8 @@
             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' %


More information about the Python-checkins mailing list