summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-05 18:53:05 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-05 18:53:05 +0900
commited62ffd5229e90893ed5854dbc60368bcb8ddf9f (patch)
tree3a48bb79429517120d485d5ff18fa486a327c16d
parent7f365869aa377841b8111662bb48dd7b01bc614f (diff)
downloadbuildstream-ed62ffd5229e90893ed5854dbc60368bcb8ddf9f.tar.gz
main.py, widget.py: Moving some imports from main -> widget
When we split up the frontend, these imports seem to have been left behind.
-rwxr-xr-xbuildstream/_frontend/main.py2
-rw-r--r--buildstream/_frontend/widget.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 54171b7ec..0224ce50e 100755
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -22,7 +22,6 @@ import sys
import click
import pkg_resources # From setuptools
from contextlib import contextmanager
-from ruamel import yaml
from blessings import Terminal
# Import buildstream public symbols
@@ -33,7 +32,6 @@ from ..exceptions import _BstError
from .._message import MessageType, unconditional_messages
from .._pipeline import Pipeline, PipelineError
from .._scheduler import Scheduler
-from .. import utils, _yaml
from .._profile import Topics, profile_start, profile_end
# Import frontend assets
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index 58ee87867..a9f574d32 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -22,8 +22,9 @@ import subprocess
import datetime
import pkg_resources
from collections import OrderedDict
+from ruamel import yaml
-from .. import utils
+from .. import utils, _yaml
from ..plugin import _plugin_lookup
from .._message import MessageType
from .. import ImplError