summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-24 11:17:18 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-25 15:43:52 +0100
commitfa740402f56bb0172ae1a44e24fd182c80c68ee6 (patch)
tree33331b3720cdbbea4490535066463ae5dabbbf24
parentd73d965b736c50bafa019a343707e73ef5c1aa90 (diff)
downloadbuildstream-fa740402f56bb0172ae1a44e24fd182c80c68ee6.tar.gz
_artifactcache/cascache.py: Prepare attributes in __init__
Python linters prefer that attributes are defined in __init__ rather than left to later routines. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r--buildstream/_artifactcache/cascache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index aeab942cc..3ba6dcabd 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -1088,6 +1088,10 @@ class _CASRemote():
self.bytestream = None
self.cas = None
self.ref_storage = None
+ self.batch_update_supported = None
+ self.batch_read_supported = None
+ self.capabilities = None
+ self.max_batch_total_size_bytes = None
def init(self):
if not self._initialized: