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
This commit is contained in:
Kartikaya Gupta 2020-05-07 11:21:41 +00:00
Родитель 467f6725fc
Коммит 23c0fd760e
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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