Commit 729e8925 authored by Sam McNally's avatar Sam McNally Committed by Alexei Svitkine

Fix missed print_style renames.

Rename the remaining uses of print_style to histograms_print_style left
from https://crrev.com/596921.

Bug: 714123
Change-Id: Ia5caab102a50bbee2c28573808ad592d48c6cc1b
Tbr: asvitkine@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/1263636
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596961}
parent 58a957b5
......@@ -19,8 +19,8 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
from diff_util import PromptUserToAcceptDiff
import path_util
import print_style
import histogram_paths
import histograms_print_style
ENUMS_PATH = histogram_paths.ENUMS_XML
......@@ -131,7 +131,8 @@ def main():
UpdateHistogramDefinitions(histogram_values, histograms_doc)
Log('Writing out new histograms file.')
new_xml = print_style.GetPrintStyle().PrettyPrintNode(histograms_doc)
new_xml = histograms_print_style.GetPrintStyle().PrettyPrintNode(
histograms_doc)
if PromptUserToAcceptDiff(xml, new_xml, 'Is the updated version acceptable?'):
with open(ENUMS_PATH, 'wb') as f:
f.write(new_xml)
......
......@@ -18,8 +18,8 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
import diff_util
import path_util
import print_style
import histogram_paths
import histograms_print_style
ENUMS_PATH = histogram_paths.ENUMS_XML
......@@ -228,7 +228,8 @@ def _GetOldAndUpdatedXml(histogram_enum_name, source_enum_values,
source_enum_path, caller_script_name,
histograms_doc)
new_xml = print_style.GetPrintStyle().PrettyPrintNode(histograms_doc)
new_xml = histograms_print_style.GetPrintStyle().PrettyPrintNode(
histograms_doc)
return (xml, new_xml)
......
......@@ -20,8 +20,8 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
from diff_util import PromptUserToAcceptDiff
import path_util
import print_style
import histogram_paths
import histograms_print_style
ENUMS_PATH = histogram_paths.ENUMS_XML
POLICY_TEMPLATES_PATH = 'components/policy/resources/policy_templates.json'
......@@ -88,7 +88,8 @@ def main():
xml = f.read()
UpdateHistogramDefinitions(policy_templates, histograms_doc)
new_xml = print_style.GetPrintStyle().PrettyPrintNode(histograms_doc)
new_xml = histograms_print_style.GetPrintStyle().PrettyPrintNode(
histograms_doc)
if PromptUserToAcceptDiff(xml, new_xml, 'Is the updated version acceptable?'):
with open(ENUMS_PATH, 'wb') as f:
f.write(new_xml)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment