From c28d3e333a57b0ea739cfc59e75b7db3372b0c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 8 Jan 2019 14:12:49 +0100 Subject: [PATCH] Storage backends: removed unused Blob.filename attribute Just use Blob.update_filename() instead. --- pillar/api/file_storage_backends/abstract.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pillar/api/file_storage_backends/abstract.py b/pillar/api/file_storage_backends/abstract.py index 09bf5772..3d02dc34 100644 --- a/pillar/api/file_storage_backends/abstract.py +++ b/pillar/api/file_storage_backends/abstract.py @@ -90,12 +90,11 @@ class Blob(metaclass=abc.ABCMeta): def __init__(self, name: str, bucket: Bucket) -> None: self.name = name + """Name of this blob in the bucket.""" + self.bucket = bucket self._size_in_bytes: typing.Optional[int] = None - self.filename: str = None - """Name of the file for the Content-Disposition header when downloading it.""" - self._log = logging.getLogger(f'{__name__}.Blob') def __repr__(self):