Docstrings.
This commit is contained in:
parent
2b3a8ddeec
commit
be963e2324
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue