Add a slightly more-useful repr for DiskFiles

Change-Id: Ica2b637c9ee015c2cf129715e33d1ed1968b0a94
This commit is contained in:
Tim Burke 2020-10-27 11:40:05 -07:00
parent 6b7eecab5d
commit 95212ac725

View File

@ -2311,6 +2311,9 @@ class BaseDiskFile(object):
device_path, storage_directory(get_data_dir(policy),
partition, name_hash))
def __repr__(self):
return '<%s datadir=%r>' % (self.__class__.__name__, self._datadir)
@property
def manager(self):
return self._manager