зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1790816 - Reformat toolkit/ with isort. r=linter-reviewers,Standard8 DONTBUILD
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D162670
This commit is contained in:
Родитель
d8d5267819
Коммит
76a10c5956
|
@ -1,7 +1,7 @@
|
|||
from mod_pywebsocket import msgutil
|
||||
|
||||
import time
|
||||
|
||||
from mod_pywebsocket import msgutil
|
||||
|
||||
|
||||
def web_socket_do_extra_handshake(request):
|
||||
# # must set request.ws_protocol to the selected version from ws_requested_protocols
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
|
||||
|
||||
EXT_ID = "extension-with-bg-sw@test"
|
||||
EXT_DIR_PATH = "extension-with-bg-sw"
|
||||
PREF_BG_SW_ENABLED = "extensions.backgroundServiceWorker.enabled"
|
||||
|
|
|
@ -2,21 +2,21 @@
|
|||
# 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 marionette_driver import Wait
|
||||
from marionette_driver.addons import Addons
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from marionette_driver import Wait
|
||||
from marionette_driver.addons import Addons
|
||||
|
||||
# Add this directory to the import path.
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
|
||||
from service_worker_testutils import (
|
||||
MarionetteServiceWorkerTestCase,
|
||||
EXT_ID,
|
||||
EXT_DIR_PATH,
|
||||
EXT_ID,
|
||||
PREF_BG_SW_ENABLED,
|
||||
PREF_PERSIST_TEMP_ADDONS,
|
||||
MarionetteServiceWorkerTestCase,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -2,20 +2,20 @@
|
|||
# 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 marionette_driver import Wait
|
||||
from marionette_driver.addons import Addons
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from marionette_driver import Wait
|
||||
from marionette_driver.addons import Addons
|
||||
|
||||
# Add this directory to the import path.
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
|
||||
from service_worker_testutils import (
|
||||
MarionetteServiceWorkerTestCase,
|
||||
EXT_ID,
|
||||
EXT_DIR_PATH,
|
||||
EXT_ID,
|
||||
PREF_BG_SW_ENABLED,
|
||||
MarionetteServiceWorkerTestCase,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Sanity check (ensure the script has been executed through `mach python`).
|
||||
try:
|
||||
|
@ -26,9 +26,9 @@ module_dir = os.path.dirname(__file__)
|
|||
sys.path.append(module_dir)
|
||||
|
||||
from GenerateWebIDLBindings import (
|
||||
APIEntry,
|
||||
load_and_parse_JSONSchema,
|
||||
set_logging_level,
|
||||
APIEntry,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import sys
|
|||
|
||||
import mozpack.path as mozpath
|
||||
|
||||
|
||||
setup_called = False
|
||||
|
||||
|
||||
|
|
|
@ -15,9 +15,7 @@ import helpers
|
|||
|
||||
helpers.setup()
|
||||
|
||||
from GenerateWebIDLBindings import (
|
||||
load_and_parse_JSONSchema,
|
||||
)
|
||||
from GenerateWebIDLBindings import load_and_parse_JSONSchema
|
||||
|
||||
|
||||
def test_all_jsonschema_load_and_parse_smoketest():
|
||||
|
|
|
@ -2,17 +2,15 @@
|
|||
# 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/.
|
||||
|
||||
import sys
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
from textwrap import dedent
|
||||
|
||||
import mozpack.path as mozpath
|
||||
import mozunit
|
||||
|
||||
import pytest
|
||||
|
||||
from textwrap import dedent
|
||||
|
||||
# Import test helpers module.
|
||||
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
|
||||
sys.path.append(OUR_DIR)
|
||||
|
@ -21,13 +19,7 @@ import helpers
|
|||
|
||||
helpers.setup()
|
||||
|
||||
from GenerateWebIDLBindings import (
|
||||
APIEvent,
|
||||
APIFunction,
|
||||
APINamespace,
|
||||
APIType,
|
||||
Schemas,
|
||||
)
|
||||
from GenerateWebIDLBindings import APIEvent, APIFunction, APINamespace, APIType, Schemas
|
||||
|
||||
|
||||
def test_parse_simple_single_api_namespace(write_jsonschema_fixtures):
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import sys
|
||||
from textwrap import dedent
|
||||
|
||||
import mozpack.path as mozpath
|
||||
import mozunit
|
||||
|
||||
from textwrap import dedent
|
||||
|
||||
# Import test helpers module.
|
||||
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
|
||||
sys.path.append(OUR_DIR)
|
||||
|
@ -18,10 +17,10 @@ import helpers
|
|||
helpers.setup()
|
||||
|
||||
from GenerateWebIDLBindings import (
|
||||
WEBEXT_STUBS_MAPPING,
|
||||
APIFunction,
|
||||
Schemas,
|
||||
WebIDLHelpers,
|
||||
WEBEXT_STUBS_MAPPING,
|
||||
)
|
||||
|
||||
original_stub_mapping_config = WEBEXT_STUBS_MAPPING.copy()
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
Outputter to generate C++ code for metrics.
|
||||
"""
|
||||
|
||||
import jinja2
|
||||
import json
|
||||
|
||||
from util import generate_metric_ids, generate_ping_ids, get_metrics
|
||||
import jinja2
|
||||
from glean_parser import util
|
||||
from util import generate_metric_ids, generate_ping_ids, get_metrics
|
||||
|
||||
|
||||
def cpp_datatypes_filter(value):
|
||||
|
|
|
@ -9,15 +9,15 @@ Outputter to generate Rust code for metrics.
|
|||
"""
|
||||
|
||||
import enum
|
||||
import jinja2
|
||||
import json
|
||||
import sys
|
||||
|
||||
from js import ID_BITS, PING_INDEX_BITS
|
||||
from util import type_ids_and_categories
|
||||
import jinja2
|
||||
from glean_parser import util
|
||||
from glean_parser.metrics import Rate
|
||||
from util import type_ids_and_categories
|
||||
|
||||
from js import ID_BITS, PING_INDEX_BITS
|
||||
|
||||
# The list of all args to CommonMetricData.
|
||||
# No particular order is required, but I have these in common_metric_data.rs
|
||||
|
|
|
@ -14,11 +14,10 @@ that uses this code to look up metrics by name.
|
|||
"""
|
||||
|
||||
import jinja2
|
||||
from glean_parser import util
|
||||
from perfecthash import PerfectHash
|
||||
from string_table import StringTable
|
||||
|
||||
from util import generate_metric_ids, generate_ping_ids, get_metrics
|
||||
from glean_parser import util
|
||||
|
||||
"""
|
||||
We need to store several bits of information in the Perfect Hash Map Entry:
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
# 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/.
|
||||
|
||||
import cpp
|
||||
import jog
|
||||
import js
|
||||
import os
|
||||
import rust
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import cpp
|
||||
import jinja2
|
||||
|
||||
from util import generate_metric_ids
|
||||
import jog
|
||||
import rust
|
||||
from glean_parser import lint, parser, translate, util
|
||||
from mozbuild.util import FileAvoidWrite
|
||||
from pathlib import Path
|
||||
from util import generate_metric_ids
|
||||
|
||||
import js
|
||||
|
||||
|
||||
class ParserError(Exception):
|
||||
|
|
|
@ -12,11 +12,11 @@ import enum
|
|||
import json
|
||||
|
||||
import jinja2
|
||||
|
||||
from js import ID_BITS, ID_SIGNAL_BITS
|
||||
from util import generate_metric_ids, generate_ping_ids, get_metrics
|
||||
from glean_parser import util
|
||||
from glean_parser.metrics import Rate
|
||||
from util import generate_metric_ids, generate_ping_ids, get_metrics
|
||||
|
||||
from js import ID_BITS, ID_SIGNAL_BITS
|
||||
|
||||
# The list of all args to CommonMetricData.
|
||||
# No particular order is required, but I have these in common_metric_data.rs
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
Utility functions for the glean_parser-based code generator
|
||||
"""
|
||||
import copy
|
||||
from typing import Dict, List, Tuple
|
||||
|
||||
from glean_parser import util
|
||||
from typing import Dict, List, Tuple
|
||||
|
||||
|
||||
def generate_ping_ids(objs):
|
||||
|
|
|
@ -26,14 +26,14 @@ GENERATED_HEADER = """
|
|||
def data_review(command_context, bug=None):
|
||||
# Get the metrics_index's list of metrics indices
|
||||
# by loading the index as a module.
|
||||
from os import path
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), path.pardir))
|
||||
from metrics_index import metrics_yamls
|
||||
from pathlib import Path
|
||||
|
||||
from glean_parser import data_review
|
||||
from pathlib import Path
|
||||
from metrics_index import metrics_yamls
|
||||
|
||||
return data_review.generate(
|
||||
bug, [Path(command_context.topsrcdir) / x for x in metrics_yamls]
|
||||
|
@ -51,16 +51,17 @@ def data_review(command_context, bug=None):
|
|||
def perf_data_review(command_context, bug=None):
|
||||
# Get the metrics_index's list of metrics indices
|
||||
# by loading the index as a module.
|
||||
from os import path
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), path.pardir))
|
||||
from metrics_index import metrics_yamls
|
||||
|
||||
sys.path.append(path.dirname(__file__))
|
||||
import perf_data_review
|
||||
from pathlib import Path
|
||||
|
||||
import perf_data_review
|
||||
|
||||
return perf_data_review.generate(
|
||||
bug, [Path(command_context.topsrcdir) / x for x in metrics_yamls]
|
||||
)
|
||||
|
@ -75,6 +76,7 @@ def perf_data_review(command_context, bug=None):
|
|||
)
|
||||
def update_glean_tags(command_context):
|
||||
from pathlib import Path
|
||||
|
||||
import yaml
|
||||
from mozbuild.backend.configenvironment import ConfigEnvironment
|
||||
from mozbuild.frontend.reader import BuildReader
|
||||
|
@ -159,8 +161,8 @@ def replace_in_file_or_die(path, pattern, replace):
|
|||
)
|
||||
@CommandArgument("version", help="Glean version to upgrade to")
|
||||
def update_glean(command_context, version):
|
||||
from pathlib import Path
|
||||
import textwrap
|
||||
from pathlib import Path
|
||||
|
||||
topsrcdir = Path(command_context.topsrcdir)
|
||||
|
||||
|
|
|
@ -10,13 +10,11 @@ Produce skeleton Performance Data Review Requests.
|
|||
This was mostly copies from glean_parser, and should be kept in sync.
|
||||
"""
|
||||
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import Sequence
|
||||
import re
|
||||
|
||||
|
||||
from glean_parser import parser
|
||||
from glean_parser import util
|
||||
from glean_parser import parser, util
|
||||
|
||||
|
||||
def generate(
|
||||
|
|
|
@ -2,8 +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/.
|
||||
|
||||
import os
|
||||
import inspect
|
||||
import os
|
||||
|
||||
|
||||
def expect(path, actual):
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import io
|
||||
import mozunit
|
||||
import sys
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
import mozunit
|
||||
from expect_helper import expect
|
||||
|
||||
# Shenanigans to import the FOG glean_parser runner
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import io
|
||||
import mozunit
|
||||
import sys
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
import mozunit
|
||||
from expect_helper import expect
|
||||
|
||||
# Shenanigans to import the cpp outputter extension
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import io
|
||||
import mozunit
|
||||
import sys
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
import mozunit
|
||||
from expect_helper import expect
|
||||
|
||||
# Shenanigans to import the js outputter extension
|
||||
|
@ -15,9 +15,10 @@ FOG_ROOT_PATH = path.abspath(
|
|||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
sys.path.append(path.join(FOG_ROOT_PATH, "build_scripts", "glean_parser_ext"))
|
||||
import js
|
||||
import run_glean_parser
|
||||
|
||||
import js
|
||||
|
||||
|
||||
def test_all_metric_types():
|
||||
"""Honestly, this is a pretty bad test.
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import io
|
||||
import mozunit
|
||||
import sys
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
import mozunit
|
||||
from expect_helper import expect
|
||||
|
||||
# Shenanigans to import the rust outputter extension
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import io
|
||||
import mozunit
|
||||
import sys
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
import mozunit
|
||||
from expect_helper import expect
|
||||
|
||||
# Shenanigans to import the FOG glean_parser runner
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# 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/.
|
||||
|
||||
import mozunit
|
||||
import sys
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
import mozunit
|
||||
|
||||
# Shenanigans to import the metrics index's list of metrics.yamls
|
||||
FOG_ROOT_PATH = path.abspath(
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
# 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/.
|
||||
|
||||
import mozunit
|
||||
from os import path
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
|
||||
# Shenanigans to import the metrics index's lists of yamls
|
||||
FOG_ROOT_PATH = path.abspath(
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
# 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/.
|
||||
|
||||
import yaml
|
||||
import json
|
||||
import sys
|
||||
import jsonschema
|
||||
from pathlib import Path
|
||||
|
||||
import jsonschema
|
||||
import yaml
|
||||
|
||||
HEADER_LINE = (
|
||||
"// This file was generated by generate_feature_manifest.py from FeatureManifest.yaml."
|
||||
" DO NOT EDIT.\n"
|
||||
|
|
|
@ -6,15 +6,16 @@
|
|||
# in a file provided as a command-line argument.
|
||||
|
||||
from __future__ import print_function
|
||||
from collections import OrderedDict
|
||||
from mozparsers.shared_telemetry_utils import static_assert, ParserError
|
||||
from mozparsers import parse_events
|
||||
|
||||
import itertools
|
||||
import json
|
||||
import sys
|
||||
import itertools
|
||||
from collections import OrderedDict
|
||||
from os import path
|
||||
|
||||
from mozparsers import parse_events
|
||||
from mozparsers.shared_telemetry_utils import ParserError, static_assert
|
||||
|
||||
COMPONENTS_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
|
|
@ -7,11 +7,12 @@
|
|||
# The events are defined in files provided as command-line arguments.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_events
|
||||
|
||||
import sys
|
||||
|
||||
import buildconfig
|
||||
from mozparsers import parse_events
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
banner = """/* This file is auto-generated, see gen_event_enum.py. */
|
||||
"""
|
||||
|
|
|
@ -6,13 +6,14 @@
|
|||
# in a file provided as a command-line argument.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import static_assert, ParserError
|
||||
from mozparsers import parse_histograms
|
||||
|
||||
import sys
|
||||
import buildconfig
|
||||
from os import path
|
||||
|
||||
import buildconfig
|
||||
from mozparsers import parse_histograms
|
||||
from mozparsers.shared_telemetry_utils import ParserError, static_assert
|
||||
|
||||
COMPONENTS_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
|
|
@ -13,13 +13,13 @@
|
|||
# The histograms are defined in files provided as command-line arguments.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_histograms
|
||||
|
||||
import itertools
|
||||
import sys
|
||||
import buildconfig
|
||||
|
||||
import buildconfig
|
||||
from mozparsers import parse_histograms
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
banner = """/* This file is auto-generated, see gen_histogram_enum.py. */
|
||||
"""
|
||||
|
|
|
@ -3,15 +3,16 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from perfecthash import PerfectHash
|
||||
|
||||
PHFSIZE = 1024
|
||||
|
||||
from mozparsers import parse_histograms
|
||||
import sys
|
||||
import buildconfig
|
||||
|
||||
import buildconfig
|
||||
from mozparsers import parse_histograms
|
||||
|
||||
banner = """/* This file is auto-generated, see gen_histogram_phf.py. */
|
||||
"""
|
||||
|
|
|
@ -6,10 +6,11 @@
|
|||
# in a file provided as a command-line argument.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import ParserError, load_yaml_file
|
||||
|
||||
import sys
|
||||
import collections
|
||||
import sys
|
||||
|
||||
from mozparsers.shared_telemetry_utils import ParserError, load_yaml_file
|
||||
|
||||
# The banner/text at the top of the generated file.
|
||||
banner = """/* This file is auto-generated from Telemetry build scripts,
|
||||
|
|
|
@ -6,10 +6,11 @@
|
|||
# in a file provided as a command-line argument.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import ParserError, load_yaml_file
|
||||
|
||||
import sys
|
||||
import collections
|
||||
import sys
|
||||
|
||||
from mozparsers.shared_telemetry_utils import ParserError, load_yaml_file
|
||||
|
||||
# The banner/text at the top of the generated file.
|
||||
banner = """/* This file is auto-generated from Telemetry build scripts,
|
||||
|
|
|
@ -6,15 +6,16 @@
|
|||
# in a file provided as a command-line argument.
|
||||
|
||||
from __future__ import print_function
|
||||
from collections import OrderedDict
|
||||
from mozparsers.shared_telemetry_utils import static_assert, ParserError
|
||||
from mozparsers import parse_scalars
|
||||
|
||||
import json
|
||||
import sys
|
||||
import buildconfig
|
||||
from collections import OrderedDict
|
||||
from os import path
|
||||
|
||||
import buildconfig
|
||||
from mozparsers import parse_scalars
|
||||
from mozparsers.shared_telemetry_utils import ParserError, static_assert
|
||||
|
||||
COMPONENTS_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
# The scalars are defined in files provided as command-line arguments.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_scalars
|
||||
|
||||
import sys
|
||||
|
||||
import buildconfig
|
||||
from mozparsers import parse_scalars
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
banner = """/* This file is auto-generated, see gen_scalar_enum.py. */
|
||||
"""
|
||||
|
|
|
@ -6,21 +6,23 @@
|
|||
# defined in a file provided as a command-line argument.
|
||||
|
||||
from __future__ import print_function
|
||||
from mozparsers.shared_telemetry_utils import static_assert, ParserError
|
||||
from mozparsers import parse_user_interactions
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
from mozparsers import parse_user_interactions
|
||||
from mozparsers.shared_telemetry_utils import ParserError, static_assert
|
||||
|
||||
COMPONENTS_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
sys.path.append(
|
||||
path.join(COMPONENTS_PATH, "glean", "build_scripts", "glean_parser_ext")
|
||||
)
|
||||
from string_table import StringTable
|
||||
|
||||
import sys
|
||||
|
||||
from string_table import StringTable
|
||||
|
||||
# The banner/text at the top of the generated file.
|
||||
banner = """/* This file is auto-generated, only for internal use in
|
||||
TelemetryUserInteraction.h, see gen_userinteraction_data.py. */
|
||||
|
|
|
@ -3,14 +3,15 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from perfecthash import PerfectHash
|
||||
|
||||
PHFSIZE = 1024
|
||||
|
||||
from mozparsers import parse_user_interactions
|
||||
import sys
|
||||
|
||||
from mozparsers import parse_user_interactions
|
||||
|
||||
banner = """/* This file is auto-generated, see gen_userinteraction_phf.py. */
|
||||
"""
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import atexit
|
||||
import re
|
||||
import yaml
|
||||
import itertools
|
||||
import re
|
||||
import string
|
||||
from . import shared_telemetry_utils as utils
|
||||
|
||||
import yaml
|
||||
|
||||
from . import shared_telemetry_utils as utils
|
||||
from .shared_telemetry_utils import ParserError
|
||||
|
||||
atexit.register(ParserError.exit_func)
|
||||
|
|
|
@ -2,6 +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/.
|
||||
|
||||
import atexit
|
||||
import collections
|
||||
import itertools
|
||||
import json
|
||||
|
@ -10,12 +11,11 @@ import os
|
|||
import re
|
||||
import runpy
|
||||
import sys
|
||||
import atexit
|
||||
from . import shared_telemetry_utils as utils
|
||||
|
||||
from ctypes import c_int
|
||||
from .shared_telemetry_utils import ParserError
|
||||
from collections import OrderedDict
|
||||
from ctypes import c_int
|
||||
|
||||
from . import shared_telemetry_utils as utils
|
||||
from .shared_telemetry_utils import ParserError
|
||||
|
||||
atexit.register(ParserError.exit_func)
|
||||
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
# 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/.
|
||||
|
||||
import atexit
|
||||
import io
|
||||
import re
|
||||
import yaml
|
||||
import atexit
|
||||
from . import shared_telemetry_utils as utils
|
||||
|
||||
import yaml
|
||||
|
||||
from . import shared_telemetry_utils as utils
|
||||
from .shared_telemetry_utils import ParserError
|
||||
|
||||
atexit.register(ParserError.exit_func)
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# 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/.
|
||||
|
||||
import atexit
|
||||
import io
|
||||
import re
|
||||
|
||||
import yaml
|
||||
import atexit
|
||||
|
||||
from .shared_telemetry_utils import ParserError
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ from __future__ import print_function
|
|||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
import yaml
|
||||
|
||||
# This is a list of flags that determine which process a measurement is allowed
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from glean_parser import lint
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def main(output, *filenames):
|
||||
|
|
|
@ -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 setuptools import setup, find_packages
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
VERSION = "1.0.0"
|
||||
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
# 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/.
|
||||
import contextlib
|
||||
import mozinstall
|
||||
import os
|
||||
import pytest
|
||||
import re
|
||||
import sys
|
||||
import textwrap
|
||||
import time
|
||||
|
||||
import mozinstall
|
||||
import pytest
|
||||
from marionette_driver import By, keys
|
||||
from marionette_driver.addons import Addons
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# 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/.
|
||||
import mozunit
|
||||
|
||||
from telemetry_harness.ping_filters import (
|
||||
ANY_PING,
|
||||
DELETION_REQUEST_PING,
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# 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/.
|
||||
import mozunit
|
||||
|
||||
from telemetry_harness.ping_filters import EVENT_PING
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# 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/.
|
||||
import mozunit
|
||||
|
||||
from telemetry_harness.ping_filters import MAIN_SHUTDOWN_PING
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# 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/.
|
||||
import mozunit
|
||||
|
||||
from telemetry_harness.ping_filters import (
|
||||
MAIN_ENVIRONMENT_CHANGE_PING,
|
||||
MAIN_SHUTDOWN_PING,
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# 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/.
|
||||
import mozunit
|
||||
|
||||
from telemetry_harness.ping_filters import (
|
||||
MAIN_ENVIRONMENT_CHANGE_PING,
|
||||
MAIN_SHUTDOWN_PING,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
import os
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
PACKAGE_VERSION = "0.1"
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import json
|
|||
import zlib
|
||||
|
||||
import mozlog
|
||||
|
||||
import wptserve.logger
|
||||
from marionette_harness.runner import httpd
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_harness import BaseMarionetteTestRunner
|
||||
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
|
||||
SERVER_URL = "http://localhost:8000"
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_harness.runtests import cli as mn_cli
|
||||
|
||||
from telemetry_harness.runner import TelemetryTestRunner
|
||||
|
||||
|
||||
|
|
|
@ -12,10 +12,8 @@ from marionette_driver.errors import MarionetteException
|
|||
from marionette_driver.wait import Wait
|
||||
from marionette_harness import MarionetteTestCase
|
||||
from marionette_harness.runner.mixins.window_manager import WindowManagerMixin
|
||||
|
||||
from telemetry_harness.ping_server import PingServer
|
||||
|
||||
|
||||
CANARY_CLIENT_ID = "c0ffeec0-ffee-c0ff-eec0-ffeec0ffeec0"
|
||||
UUID_PATTERN = re.compile(
|
||||
r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
||||
|
|
|
@ -9,11 +9,8 @@ import os
|
|||
import sys
|
||||
|
||||
from mach.decorators import Command
|
||||
|
||||
from mozbuild.base import (
|
||||
MachCommandConditions as conditions,
|
||||
BinaryNotFoundException,
|
||||
)
|
||||
from mozbuild.base import BinaryNotFoundException
|
||||
from mozbuild.base import MachCommandConditions as conditions
|
||||
|
||||
|
||||
def create_parser_tests():
|
||||
|
@ -26,11 +23,9 @@ def create_parser_tests():
|
|||
|
||||
|
||||
def run_telemetry(tests, binary=None, topsrcdir=None, **kwargs):
|
||||
from mozlog.structured import commandline
|
||||
|
||||
from telemetry_harness.runtests import TelemetryTestRunner
|
||||
|
||||
from marionette_harness.runtests import MarionetteHarness
|
||||
from mozlog.structured import commandline
|
||||
from telemetry_harness.runtests import TelemetryTestRunner
|
||||
|
||||
parser = create_parser_tests()
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# 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 telemetry_harness.testcase import TelemetryTestCase
|
||||
from telemetry_harness.ping_filters import (
|
||||
ANY_PING,
|
||||
DELETION_REQUEST_PING,
|
||||
MAIN_SHUTDOWN_PING,
|
||||
)
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
|
||||
|
||||
class TestDeletionRequestPing(TelemetryTestCase):
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
# 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 telemetry_harness.testcase import TelemetryTestCase
|
||||
from telemetry_harness.ping_filters import (
|
||||
MAIN_SHUTDOWN_PING,
|
||||
MAIN_ENVIRONMENT_CHANGE_PING,
|
||||
MAIN_SHUTDOWN_PING,
|
||||
)
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
|
||||
|
||||
class TestDynamicProbes(TelemetryTestCase):
|
||||
|
|
|
@ -2,8 +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 telemetry_harness.testcase import TelemetryTestCase
|
||||
from telemetry_harness.ping_filters import MAIN_SHUTDOWN_PING
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
|
||||
|
||||
class TestMainTabScalars(TelemetryTestCase):
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
# 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 telemetry_harness.testcase import TelemetryTestCase
|
||||
from telemetry_harness.ping_filters import (
|
||||
MAIN_ENVIRONMENT_CHANGE_PING,
|
||||
MAIN_SHUTDOWN_PING,
|
||||
)
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
|
||||
|
||||
class TestSubsessionManagement(TelemetryTestCase):
|
||||
|
|
|
@ -2,10 +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 telemetry_harness.ping_filters import MAIN_SHUTDOWN_PING
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
from telemetry_harness.ping_filters import (
|
||||
MAIN_SHUTDOWN_PING,
|
||||
)
|
||||
|
||||
|
||||
class TestUnicodeEncoding(TelemetryTestCase):
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/
|
||||
|
||||
import requests
|
||||
|
||||
from telemetry_harness.testcase import TelemetryTestCase
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import json
|
||||
import mozunit
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
@ -11,6 +10,8 @@ import unittest
|
|||
from io import StringIO
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import json
|
||||
import mozunit
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
@ -11,6 +10,8 @@ import unittest
|
|||
from io import StringIO
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import json
|
||||
import mozunit
|
||||
import sys
|
||||
import unittest
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
# 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/.
|
||||
|
||||
import mozunit
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
import os
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
from test_histogramtools_non_strict import load_histogram
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
|
@ -16,8 +17,8 @@ sys.path.append(TELEMETRY_ROOT_PATH)
|
|||
# The parsers live in a subdirectory of "build_scripts", account for that.
|
||||
# NOTE: if the parsers are moved, this logic will need to be updated.
|
||||
sys.path.append(path.join(TELEMETRY_ROOT_PATH, "build_scripts"))
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_histograms
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
|
||||
class TestParser(unittest.TestCase):
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
# 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/.
|
||||
|
||||
import yaml
|
||||
import mozunit
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
import os
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
import yaml
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
@ -16,8 +17,8 @@ sys.path.append(TELEMETRY_ROOT_PATH)
|
|||
# The parsers live in a subdirectory of "build_scripts", account for that.
|
||||
# NOTE: if the parsers are moved, this logic will need to be updated.
|
||||
sys.path.append(path.join(TELEMETRY_ROOT_PATH, "build_scripts"))
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_events
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
|
||||
def load_event(event):
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
# 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/.
|
||||
|
||||
import yaml
|
||||
import mozunit
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
import os
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
import yaml
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
path.join(path.dirname(__file__), path.pardir, path.pardir)
|
||||
)
|
||||
|
@ -16,8 +17,8 @@ sys.path.append(TELEMETRY_ROOT_PATH)
|
|||
# The parsers live in a subdirectory of "build_scripts", account for that.
|
||||
# NOTE: if the parsers are moved, this logic will need to be updated.
|
||||
sys.path.append(path.join(TELEMETRY_ROOT_PATH, "build_scripts"))
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_scalars
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
|
||||
def load_scalar(scalar):
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# 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/.
|
||||
|
||||
import mozunit
|
||||
import sys
|
||||
import unittest
|
||||
from os import path
|
||||
|
||||
import mozunit
|
||||
from test_histogramtools_non_strict import load_histogram
|
||||
|
||||
TELEMETRY_ROOT_PATH = path.abspath(
|
||||
|
@ -15,8 +16,8 @@ sys.path.append(TELEMETRY_ROOT_PATH)
|
|||
# The parsers live in a subdirectory of "build_scripts", account for that.
|
||||
# NOTE: if the parsers are moved, this logic will need to be updated.
|
||||
sys.path.append(path.join(TELEMETRY_ROOT_PATH, "build_scripts"))
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
from mozparsers import parse_histograms
|
||||
from mozparsers.shared_telemetry_utils import ParserError
|
||||
|
||||
|
||||
class TestParser(unittest.TestCase):
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
from fluent.syntax import parse
|
||||
from fluent.syntax.ast import Message
|
||||
import sys
|
||||
|
||||
|
||||
def find_error_ids(filename, known_strings):
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
import string
|
||||
import sys
|
||||
import textwrap
|
||||
|
||||
import yaml
|
||||
|
||||
###############################################################################
|
||||
|
|
|
@ -23,31 +23,27 @@
|
|||
|
||||
from __future__ import print_function
|
||||
|
||||
import buildconfig
|
||||
import ctypes
|
||||
import errno
|
||||
import sys
|
||||
import platform
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import shutil
|
||||
import textwrap
|
||||
import subprocess
|
||||
import sys
|
||||
import textwrap
|
||||
import time
|
||||
import ctypes
|
||||
|
||||
from optparse import OptionParser
|
||||
|
||||
from mozbuild.util import memoize
|
||||
import buildconfig
|
||||
from mozbuild.generated_sources import (
|
||||
get_filename_with_digest,
|
||||
get_generated_sources,
|
||||
get_s3_region_and_bucket,
|
||||
)
|
||||
from mozbuild.util import memoize
|
||||
from mozpack.copier import FileRegistry
|
||||
from mozpack.manifests import (
|
||||
InstallManifest,
|
||||
UnreadableInstallManifest,
|
||||
)
|
||||
from mozpack.manifests import InstallManifest, UnreadableInstallManifest
|
||||
|
||||
# Utility classes
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
# 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 unittest import mock
|
||||
import mozunit
|
||||
import os
|
||||
import shutil
|
||||
import struct
|
||||
|
@ -12,13 +10,14 @@ import subprocess
|
|||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
import buildconfig
|
||||
|
||||
from unittest import mock
|
||||
from unittest.mock import patch
|
||||
from mozpack.manifests import InstallManifest
|
||||
import mozpack.path as mozpath
|
||||
|
||||
import buildconfig
|
||||
import mozpack.path as mozpath
|
||||
import mozunit
|
||||
import symbolstore
|
||||
from mozpack.manifests import InstallManifest
|
||||
from symbolstore import realpath
|
||||
|
||||
# Some simple functions to mock out files that the platform-specific dumpers will accept.
|
||||
|
|
|
@ -19,11 +19,12 @@ from __future__ import absolute_import, print_function, unicode_literals
|
|||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import redo
|
||||
import requests
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import redo
|
||||
import requests
|
||||
|
||||
log = logging.getLogger("upload-symbols")
|
||||
log.setLevel(logging.INFO)
|
||||
|
||||
|
@ -81,12 +82,13 @@ def main():
|
|||
zip_path = args.archive
|
||||
|
||||
if args.archive.endswith(".tar.zst"):
|
||||
from mozpack.files import File
|
||||
from mozpack.mozjar import JarWriter
|
||||
import gzip
|
||||
import tarfile
|
||||
import tempfile
|
||||
|
||||
import zstandard
|
||||
from mozpack.files import File
|
||||
from mozpack.mozjar import JarWriter
|
||||
|
||||
def prepare_zip_from(archive, tmpdir):
|
||||
if archive.startswith("http"):
|
||||
|
|
|
@ -9,10 +9,11 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
|
||||
from mozbuild.preprocessor import Preprocessor
|
||||
from io import StringIO
|
||||
import buildconfig
|
||||
import os
|
||||
from io import StringIO
|
||||
|
||||
import buildconfig
|
||||
from mozbuild.preprocessor import Preprocessor
|
||||
|
||||
|
||||
def main(output, input_file):
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
""" GDB Python customization auto-loader for libxul """
|
||||
|
||||
import re
|
||||
|
||||
from os.path import abspath, dirname, exists
|
||||
|
||||
# Add the toplevel objdir to the gdb source search path.
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
|
||||
from __future__ import print_function
|
||||
|
||||
from copy import deepcopy
|
||||
from six import iteritems
|
||||
from struct import unpack
|
||||
import os
|
||||
from copy import deepcopy
|
||||
from struct import unpack
|
||||
from uuid import UUID
|
||||
|
||||
from six import iteritems
|
||||
|
||||
H_HEADER = """/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||
/* This file was auto-generated from {0} by gen_dll_blocklist_data.py. */
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
from contextlib import contextmanager
|
||||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
|
||||
|
||||
class ExperimentStatus:
|
||||
UNENROLLED = 0
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
from contextlib import contextmanager
|
||||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
|
||||
|
||||
class ExperimentStatus:
|
||||
UNENROLLED = 0
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
from contextlib import contextmanager
|
||||
|
||||
from marionette_harness import MarionetteTestCase
|
||||
|
||||
|
||||
class ExperimentStatus:
|
||||
UNENROLLED = 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче