Minor docstring revision
This commit is contained in:
parent
7d7b7d095c
commit
6daab95f5f
@ -79,6 +79,20 @@ class Repository(Hierarchy):
|
||||
"""
|
||||
return self._snapshots
|
||||
|
||||
@property
|
||||
def empty(self):
|
||||
"""Determine whether or not this Repository is empty.
|
||||
|
||||
Example
|
||||
-------
|
||||
>>> repo = Repository('/tmp')
|
||||
>>> repo.empty
|
||||
True
|
||||
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._snapshots == []
|
||||
|
||||
@property
|
||||
def curr_snapshot(self):
|
||||
"""Return this Repository's current snapshot.
|
||||
@ -119,7 +133,6 @@ class Repository(Hierarchy):
|
||||
<...Snapshot ... at 0x...>
|
||||
|
||||
:return: a new Snapshot object
|
||||
:rtype: Snapshot object
|
||||
"""
|
||||
path = os.path.join(self._snapshot_dir, f"snapshot-{name}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user