Bug 785459 follow-up: use the python 2.5 syntax
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 24 Aug 2012 16:47:45 -0400
changeset 103351 f56f3d3f2c12b67624a84c2bbfdb38f7bff29fd7
parent 103350 68a243c559b23d08fa8a824d93ebd8531454c143
child 103352 e89ead1bbe389ca1a0a1e6ce5a9662dbf3881f9c
push id23343
push userryanvm@gmail.com
push dateSat, 25 Aug 2012 02:53:35 +0000
treeherdermozilla-central@f077de66e52d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs785459
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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()