Update docstrings
This commit is contained in:
parent
b9abafc76a
commit
83217f6205
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user