diff options
author | James Ennis <james.ennis@codethink.com> | 2018-02-14 17:02:00 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2018-03-14 14:10:26 +0000 |
commit | 81833add3730eb3f8b489e9f5cc34df7617373fc (patch) | |
tree | 8072db8db7bff7befedf6fa09de506d7e0ba3fd3 /buildstream/element.py | |
parent | 0394d67d26035234553c506539b1bd790cddec1d (diff) | |
download | buildstream-81833add3730eb3f8b489e9f5cc34df7617373fc.tar.gz |
pylint - dealt with superfluous-parens warning
Diffstat (limited to 'buildstream/element.py')
-rw-r--r-- | buildstream/element.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 48b9b756c..2efb78b85 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -797,7 +797,7 @@ class Element(Plugin): # in a subprocess. # def _schedule_assemble(self): - assert(not self.__assemble_scheduled) + assert not self.__assemble_scheduled self.__assemble_scheduled = True for source in self.__sources: @@ -811,7 +811,7 @@ class Element(Plugin): # in a subprocess. # def _assemble_done(self): - assert(self.__assemble_scheduled) + assert self.__assemble_scheduled for source in self.__sources: source._assemble_done() @@ -889,7 +889,7 @@ class Element(Plugin): return False for dependency in self.dependencies(Scope.BUILD): - if not (dependency._cached()): + if not dependency._cached(): return False return True @@ -1055,7 +1055,7 @@ class Element(Plugin): def _assemble(self): # Assert call ordering - assert(not self._cached()) + assert not self._cached() context = self._get_context() with self._output_file() as output_file: @@ -1946,7 +1946,7 @@ class Element(Plugin): def _load_public_data(self): self._assert_cached() - assert(self.__dynamic_public is None) + assert self.__dynamic_public is None # Load the public data from the artifact metadir = os.path.join(self.__extract(), 'meta') |