diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-09 15:32:12 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-11 11:44:18 +0900 |
commit | 8e23879812ad90c8abe7bbbce61b37d091ae9ba7 (patch) | |
tree | 7920f03029e51e1e35f6317633387bc8aa3bdccc /src/buildstream/element.py | |
parent | 7ce327e063da7f29ae16f1384d612242e622bc39 (diff) | |
download | buildstream-8e23879812ad90c8abe7bbbce61b37d091ae9ba7.tar.gz |
element.py: Separating internal/private instance members in Element.__init__()
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r-- | src/buildstream/element.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index bdac7054d..c6577f5f5 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -221,6 +221,15 @@ class Element(Plugin): and creating directory names and such. """ + # + # Internal instance properties + # + self._depth = None # Depth of Element in its current dependency graph + + # + # Private instance properties + # + # Direct runtime dependency Elements self.__runtime_dependencies = [] # type: List[Element] # Direct build dependency Elements @@ -270,7 +279,6 @@ class Element(Plugin): self.__can_query_cache_callback = None # Callback to PullQueue/FetchQueue self.__buildable_callback = None # Callback to BuildQueue - self._depth = None # Depth of Element in its current dependency graph self.__resolved_initial_state = False # Whether the initial state of the Element has been resolved # Ensure we have loaded this class's defaults |