Bug 1547730 - Do s/StandardError/Exception/ to support py3 r=#build
☠☠ backed out by ee4b88439111 ☠ ☠
authorJustin Wood <Callek@gmail.com>
Sun, 14 Apr 2019 21:37:56 -0400
changeset 474140 35e2dc6ad3474355bdeb4d1639fba65d61c24cf6
parent 474139 1b766ee6bf2385df6cd79ad01edd47dcfa56b657
child 474141 fa39fb43fd1284eb017291717bb4ae85fdb4b09b
push id36023
push userncsoregi@mozilla.com
push dateThu, 16 May 2019 21:56:43 +0000
treeherdermozilla-central@786f094a30ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1547730
milestone68.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 1547730 - Do s/StandardError/Exception/ to support py3 r=#build Differential Revision: https://phabricator.services.mozilla.com/D28099
python/mozbuild/mozbuild/preprocessor.py
--- a/python/mozbuild/mozbuild/preprocessor.py
+++ b/python/mozbuild/mozbuild/preprocessor.py
@@ -241,17 +241,17 @@ class Expression:
             self.type = type
 
         def __str__(self):
             return self.value.__str__()
 
         def __repr__(self):
             return self.value.__repr__()
 
-    class ParseError(StandardError):
+    class ParseError(Exception):
         """
         Error raised when parsing fails.
         It has two members, offset and content, which give the offset of the
         error and the offending content.
         """
 
         def __init__(self, expression):
             self.offset = expression.offset