diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-04 19:46:06 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-05 15:35:20 +0900 |
commit | 8c8b1c541baa905c53fb31244739dad710a1ae99 (patch) | |
tree | 121acdf3bc6d18c00bfb2d718aa4745b79711be6 /buildstream/_frontend/widget.py | |
parent | cc43127e3876d865037eeea5ab3d9ccd83251b9e (diff) | |
download | buildstream-8c8b1c541baa905c53fb31244739dad710a1ae99.tar.gz |
_options package: Adhere to policy on private symbols
This also adds a couple of methods to OptionPool to avoid
exposing some internals to other parts of the codebase, and
calls those new methods from _project.py and _frontend/widget.py
This is a part of issue #285
Diffstat (limited to 'buildstream/_frontend/widget.py')
-rw-r--r-- | buildstream/_frontend/widget.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py index 3c89c915e..eaaf1dda8 100644 --- a/buildstream/_frontend/widget.py +++ b/buildstream/_frontend/widget.py @@ -529,11 +529,10 @@ class LogLine(Widget): text += '\n' # Project Options - if project.options.variables: + values = OrderedDict() + project.options.printable_variables(values) + if values: text += self.content_profile.fmt("Project Options\n", bold=True) - values = OrderedDict() - for key in sorted(project.options.variables): - values[key] = project.options.variables[key] text += self.format_values(values) text += '\n' |