summaryrefslogtreecommitdiff
path: root/buildstream/_context.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-04 12:28:58 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-04 12:30:12 +0000
commit3628cbbe0ec04e4f6e202d473a04a8fb3cf60840 (patch)
tree80cde7c589f48caf663ba43da8a70af5a625c0d6 /buildstream/_context.py
parentbb8f807bc6f5bcc6259bc06d6995b7f0bc2c6076 (diff)
downloadbuildstream-3628cbbe0ec04e4f6e202d473a04a8fb3cf60840.tar.gz
Move utils._generate_key() into a new 'cachekey' module
This avoids a circular dependency between the 'utils' and '_yaml' modules.
Diffstat (limited to 'buildstream/_context.py')
-rw-r--r--buildstream/_context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_context.py b/buildstream/_context.py
index 08ce83adf..6d0a19bde 100644
--- a/buildstream/_context.py
+++ b/buildstream/_context.py
@@ -22,10 +22,10 @@ import os
import datetime
from collections import deque, Mapping
from contextlib import contextmanager
+from . import _cachekey
from . import _signals
from . import _site
from . import _yaml
-from . import utils
from ._exceptions import LoadError, LoadErrorReason, BstError
from ._message import Message, MessageType
from ._profile import Topics, profile_start, profile_end
@@ -253,7 +253,7 @@ class Context():
if self._cache_key is None:
# Anything that alters the build goes into the unique key
- self._cache_key = utils._generate_key({})
+ self._cache_key = _cachekey.generate_key({})
return self._cache_key