From 83217f6205fda1a1fb605fc19597abb1864ba4ca Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 14 Apr 2019 21:11:18 -0700 Subject: [PATCH] Update docstrings --- rbackup/struct/repository.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rbackup/struct/repository.py b/rbackup/struct/repository.py index 314d636..1d703d6 100644 --- a/rbackup/struct/repository.py +++ b/rbackup/struct/repository.py @@ -40,10 +40,8 @@ class Repository(Hierarchy): :: - >>> for snapshot in Repository('backup'): - >>> print(snapshot.path) - first - second + >>> for snapshot in Repository('backup'): # doctest: +ELLIPSIS + ... ... ... Snapshots on repositories can be retrieved by index using python's @@ -179,6 +177,7 @@ class Repository(Hierarchy): :type remove_repo_dir: bool """ # We don't want to risk symlink attacks + # noinspection PyUnresolvedReferences if not shutil.rmtree.avoids_symlink_attacks: syslog.error( "shutil cannot avoid symlink attacks on this platform. Ignoring."