Bug 1559975 - Make directories python3 compatible r=catlee

Differential Revision: https://phabricator.services.mozilla.com/D35257

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Maliha Islam 2019-07-02 15:47:34 +00:00
parent dd8c448c22
commit 2d69e323f1
10 changed files with 9 additions and 8 deletions

View file

@ -4,6 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import
import sys
import os

View file

@ -3,7 +3,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import, print_function
from optparse import OptionParser
import sys
import re

View file

@ -1,3 +1,4 @@
from __future__ import absolute_import, print_function
import os
import shutil
import time

View file

@ -1,3 +1,4 @@
from __future__ import absolute_import
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler

View file

@ -3,6 +3,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import
import textwrap
from marionette_harness.marionette_test import MarionetteTestCase

View file

@ -2,6 +2,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import
def test(mod, path, entity=None):
import re

View file

@ -8,6 +8,7 @@ script that uses InspectorUtils to query the CSS properties used by the browser.
This information is used to generate the properties-db.js file.
"""
from __future__ import absolute_import, print_function
import json
import os
import runpy

View file

@ -3,13 +3,10 @@ py2:
description: Python 2 compatibility check
include: ['.']
exclude:
- accessible/xpcom/AccEventGen.py
- browser
- build
- client.py
- config
- configure.py
- devtools/shared/css/generated/mach_commands.py
- dom
- editor
- gfx
@ -47,7 +44,6 @@ py2:
- tools/jprof/split-profile.py
- tools/lint
- tools/mach_commands.py
- tools/power/mach_commands.py
- tools/profiler
- tools/rb
- tools/update-packaging

View file

@ -4,8 +4,6 @@ py3:
include: ['.']
exclude:
- browser/app
- browser/components
- browser/extensions
- build
- client.py
- config

View file

@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import print_function
from __future__ import print_function, absolute_import
from distutils.version import StrictVersion