diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 22:54:17 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-04-01 10:54:31 +0000 |
commit | 438ed34c132c5da29495b92f5589ce8c816cccc3 (patch) | |
tree | 347ecfba22106f0d5d8855a431a8d47f5b26e89b /buildstream/utils.py | |
parent | b8cb5832a83d297a6c2feda771ac04cf4fe83874 (diff) | |
download | buildstream-438ed34c132c5da29495b92f5589ce8c816cccc3.tar.gz |
lint: Fix or silence 'cyclic-import' errors and enable pylint for it
Cyclic imports can be confusing because the order in which we import
dependencies can make the import fail or not. We should not rely on
ordering of imports for our code. This fixes everywhere possible the
imports and silence explicitely some which are not convenient or would
require big refactors
Diffstat (limited to 'buildstream/utils.py')
-rw-r--r-- | buildstream/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py index f4a329210..e730dc2a9 100644 --- a/buildstream/utils.py +++ b/buildstream/utils.py @@ -485,7 +485,7 @@ def get_bst_version(): (int): The minor version """ # Import this only conditionally, it's not resolved at bash complete time - from . import __version__ + from . import __version__ # pylint: disable=cyclic-import versions = __version__.split('.')[:2] if versions[0] == '0+untagged': |