Bug 1634864 - xpidl.xpidl.IDLError: error: Unexpected parameter attribute. r=glandium
☠☠ backed out by 14ea6573bdd4 ☠ ☠
authorBill Gianopoulos <wgianopoulos@gmail.com>
Tue, 05 May 2020 07:26:29 +0000
changeset 528042 c63401aa60bc0a15494ef54507dbdce896950f3b
parent 528041 21fd1ef9cbe46d660f9cd51c26036c1e152d638e
child 528043 14ea6573bdd42cfe27db134d013a5f15c9c5ce60
push id114935
push useriann_cvs@blueyonder.co.uk
push dateTue, 05 May 2020 08:10:36 +0000
treeherderautoland@c63401aa60bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1634864
milestone78.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 1634864 - xpidl.xpidl.IDLError: error: Unexpected parameter attribute. r=glandium Differential Revision: https://phabricator.services.mozilla.com/D73543
xpcom/idl-parser/xpidl/xpidl.py
--- a/xpcom/idl-parser/xpidl/xpidl.py
+++ b/xpcom/idl-parser/xpidl/xpidl.py
@@ -128,18 +128,19 @@ 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 >>sys.stderr, IDLError(
-                "[const] doesn't make sense on builtin types.", self.location, warning=True)
+            print(IDLError(
+                "[const] doesn't make sense on builtin types.",
+                self.location, warning=True), file=sys.stderr)
             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: