зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1271986 - Allow for Histogram.json entries with "keyed":"true" when running histogram_tools.py in the pipeline. r=dexter
This commit is contained in:
Родитель
a3cd47760d
Коммит
d266a38370
|
@ -293,6 +293,9 @@ associated with the histogram. Returns None if no guarding is necessary."""
|
|||
return v
|
||||
for key in [k for k in coerce_fields if k in definition]:
|
||||
definition[key] = try_to_coerce_to_number(definition[key])
|
||||
# This handles old "keyed":"true" definitions (bug 1271986).
|
||||
if definition.get("keyed", None) == "true":
|
||||
definition["keyed"] = True
|
||||
|
||||
for key, key_type in type_checked_fields.iteritems():
|
||||
if not key in definition:
|
||||
|
|
Загрузка…
Ссылка в новой задаче