Update docstrings

This commit is contained in:
Eric Torres 2019-04-14 21:11:18 -07:00
parent b9abafc76a
commit 83217f6205

View File

@ -40,10 +40,8 @@ class Repository(Hierarchy):
:: ::
>>> for snapshot in Repository('backup'): >>> for snapshot in Repository('backup'): # doctest: +ELLIPSIS
>>> print(snapshot.path) ... ...
first
second
... ...
Snapshots on repositories can be retrieved by index using python's Snapshots on repositories can be retrieved by index using python's
@ -179,6 +177,7 @@ class Repository(Hierarchy):
:type remove_repo_dir: bool :type remove_repo_dir: bool
""" """
# We don't want to risk symlink attacks # We don't want to risk symlink attacks
# noinspection PyUnresolvedReferences
if not shutil.rmtree.avoids_symlink_attacks: if not shutil.rmtree.avoids_symlink_attacks:
syslog.error( syslog.error(
"shutil cannot avoid symlink attacks on this platform. Ignoring." "shutil cannot avoid symlink attacks on this platform. Ignoring."