Minor docstring revision

This commit is contained in:
Eric Torres 2019-03-16 07:52:15 -07:00
parent 7d7b7d095c
commit 6daab95f5f

View File

@ -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}")