From 23c0fd760ed610d9632a3af4ee97a1305e3c7d74 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Thu, 7 May 2020 11:21:41 +0000 Subject: [PATCH] Bug 1636006 - Restore py2 compatibility in xpidl.py. r=froydnj This file is used by the searchfox indexer using python2, so maintaining py2-compatibility is desirable if not unduly burdensome. Differential Revision: https://phabricator.services.mozilla.com/D74224 --- xpcom/idl-parser/xpidl/xpidl.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xpcom/idl-parser/xpidl/xpidl.py b/xpcom/idl-parser/xpidl/xpidl.py index 7957da1acc9a..a26feb523900 100755 --- a/xpcom/idl-parser/xpidl/xpidl.py +++ b/xpcom/idl-parser/xpidl/xpidl.py @@ -7,7 +7,14 @@ """A parser for cross-platform IDL (XPIDL) files.""" +# Note that this file is used by the searchfox indexer in ways that are +# not tested in Firefox's CI. Please try to keep this file py2-compatible +# if the burden for that is low. If you are making changes you know to be +# incompatible with py2, please give a searchfox maintainer a heads-up so +# that any necessary changes can be made on the searchfox side. + from __future__ import absolute_import +from __future__ import print_function import sys import os.path