diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-23 16:52:27 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-25 15:43:52 +0100 |
commit | 3e4a650783edbdef5dc26af498c390167ba4d56c (patch) | |
tree | 5e20295d8fe852c4609fbd39eb259cb748dd0d6e | |
parent | b45fea19f6c3a7fc75103385b5aa2b9a0f617735 (diff) | |
download | buildstream-3e4a650783edbdef5dc26af498c390167ba4d56c.tar.gz |
_artifactcache/artifactcache.py: Silence lint issues
The pylint tool is unable to understand that the abstract methods
in the artifact cache will only be called when there's concrete
implementations behind them. Silence the lint errors for these
specific calls.
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index 3aeb91567..8ea6c9dc2 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -252,7 +252,7 @@ class ArtifactCache(): # (int): The size of the cache after having cleaned up # def clean(self): - artifacts = self.list_artifacts() + artifacts = self.list_artifacts() # pylint: disable=assignment-from-no-return # Build a set of the cache keys which are required # based on the required elements at cleanup time @@ -294,7 +294,7 @@ class ArtifactCache(): if key not in required_artifacts: # Remove the actual artifact, if it's not required. - size = self.remove(to_remove) + size = self.remove(to_remove) # pylint: disable=assignment-from-no-return # Remove the size from the removed size self.set_cache_size(self._cache_size - size) @@ -311,7 +311,7 @@ class ArtifactCache(): # (int): The size of the artifact cache. # def compute_cache_size(self): - self._cache_size = self.calculate_cache_size() + self._cache_size = self.calculate_cache_size() # pylint: disable=assignment-from-no-return return self._cache_size |