Add a slightly more-useful repr for DiskFiles
Change-Id: Ica2b637c9ee015c2cf129715e33d1ed1968b0a94
This commit is contained in:
1 changed files with 3 additions and 0 deletions
@@ -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
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.