Docstrings.

This commit is contained in:
Itamar Turner-Trauring 2022-07-22 11:55:33 -04:00
parent 2b3a8ddeec
commit be963e2324
1 changed files with 3 additions and 3 deletions

View File

@ -204,6 +204,9 @@ class ShareFile(object):
self._data_offset = 0xc self._data_offset = 0xc
def get_length(self): def get_length(self):
"""
Return the length of the data in the share, if we're reading.
"""
return self._length return self._length
def unlink(self): def unlink(self):
@ -549,9 +552,6 @@ class BucketReader(object):
self.shnum, self.shnum,
reason) reason)
def get_length(self):
return self._share_file.get_length()
@implementer(RIBucketReader) @implementer(RIBucketReader)
class FoolscapBucketReader(Referenceable): # type: ignore # warner/foolscap#78 class FoolscapBucketReader(Referenceable): # type: ignore # warner/foolscap#78