Storage backends: removed unused Blob.filename attribute
Just use Blob.update_filename() instead.
This commit is contained in:
@@ -90,12 +90,11 @@ class Blob(metaclass=abc.ABCMeta):
|
|||||||
|
|
||||||
def __init__(self, name: str, bucket: Bucket) -> None:
|
def __init__(self, name: str, bucket: Bucket) -> None:
|
||||||
self.name = name
|
self.name = name
|
||||||
|
"""Name of this blob in the bucket."""
|
||||||
|
|
||||||
self.bucket = bucket
|
self.bucket = bucket
|
||||||
self._size_in_bytes: typing.Optional[int] = None
|
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')
|
self._log = logging.getLogger(f'{__name__}.Blob')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
Reference in New Issue
Block a user