Bug 785459 follow-up: use the python 2.5 syntax
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 24 Aug 2012 16:47:45 -0400
changeset 105384 f56f3d3f2c12b67624a84c2bbfdb38f7bff29fd7
parent 105383 68a243c559b23d08fa8a824d93ebd8531454c143
child 105385 e89ead1bbe389ca1a0a1e6ce5a9662dbf3881f9c
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
bugs785459
milestone17.0a1
Bug 785459 follow-up: use the python 2.5 syntax
dom/bindings/parser/WebIDL.py
--- a/dom/bindings/parser/WebIDL.py
+++ b/dom/bindings/parser/WebIDL.py
@@ -3710,16 +3710,16 @@ def main():
         for filename in fileList:
             fullPath = os.path.normpath(os.path.join(baseDir, filename))
             f = open(fullPath, 'rb')
             lines = f.readlines()
             f.close()
             print fullPath
             parser.parse(''.join(lines), fullPath)
         parser.finish()
-    except WebIDLError as e:
+    except WebIDLError, e:
         if options.verbose_errors:
             traceback.print_exc()
         else:
             print e
 
 if __name__ == '__main__':
     main()