Backed out changeset c63401aa60bc (bug 1634864) for build bustages. CLOSED TREE
authorRazvan Maries <rmaries@mozilla.com>
Tue, 05 May 2020 11:18:56 +0300
changeset 528043 14ea6573bdd42cfe27db134d013a5f15c9c5ce60
parent 528042 c63401aa60bc0a15494ef54507dbdce896950f3b
child 528044 b48f9d17198344d0af482a30c95e86a92ad7ce93
push id114936
push userrmaries@mozilla.com
push dateTue, 05 May 2020 08:19:39 +0000
treeherderautoland@14ea6573bdd4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1634864
milestone78.0a1
backs outc63401aa60bc0a15494ef54507dbdce896950f3b
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
Backed out changeset c63401aa60bc (bug 1634864) for build bustages. CLOSED TREE
xpcom/idl-parser/xpidl/xpidl.py
--- a/xpcom/idl-parser/xpidl/xpidl.py
+++ b/xpcom/idl-parser/xpidl/xpidl.py
@@ -128,19 +128,18 @@ class Builtin(object):
         """Check if this type is a pointer type - this will control how pointers act"""
         return self.nativename.endswith('*')
 
     def nativeType(self, calltype, shared=False, const=False):
         if self.name in ["string", "wstring"] and calltype == 'element':
             raise IDLError("Use string class types for string Array elements", self.location)
 
         if const:
-            print(IDLError(
-                "[const] doesn't make sense on builtin types.",
-                self.location, warning=True), file=sys.stderr)
+            print >>sys.stderr, IDLError(
+                "[const] doesn't make sense on builtin types.", self.location, warning=True)
             const = 'const '
         elif calltype == 'in' and self.isPointer():
             const = 'const '
         elif shared:
             if not self.isPointer():
                 raise IDLError("[shared] not applicable to non-pointer types.", self.location)
             const = 'const '
         else: