Storage backends: removed unused Blob.filename attribute

Just use Blob.update_filename() instead.
This commit is contained in:
Sybren A. Stüvel 2019-01-08 14:12:49 +01:00
parent 004bd47e22
commit c28d3e333a

View File

@ -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):