summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/selection.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-02-25 08:18:43 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-02-25 08:18:43 +0000
commit3f23be3b6e8f61de2ef2d8408c474e22df8cfeb9 (patch)
tree103076fa7e3c0e636b3ca77f6a58fb5a7664801e /rdiff-backup/rdiff_backup/selection.py
parent39f64abf52669a32d2d58a7a056b89e6aa5feae7 (diff)
downloadrdiff-backup-3f23be3b6e8f61de2ef2d8408c474e22df8cfeb9.tar.gz
More changes in preparation for 0.11.2
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@284 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/selection.py')
-rw-r--r--rdiff-backup/rdiff_backup/selection.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/rdiff-backup/rdiff_backup/selection.py b/rdiff-backup/rdiff_backup/selection.py
index 6c4cabe..1dfaf5d 100644
--- a/rdiff-backup/rdiff_backup/selection.py
+++ b/rdiff-backup/rdiff_backup/selection.py
@@ -95,19 +95,11 @@ class Select:
"""
if not sel_func: sel_func = self.Select
self.rpath.setdata() # this may have changed since Select init
- self.iter = self.filter_readable(self.Iterate_fast(self.rpath,
- sel_func))
+ self.iter = self.Iterate_fast(self.rpath, sel_func)
self.next = self.iter.next
self.__iter__ = lambda: self
return self
- def filter_readable(self, rp_iter):
- """Yield rps in iter except the unreadable regular files"""
- for rp in rp_iter:
- if not rp.isreg() or rp.readable(): yield rp
- else: log.ErrorLog.write_if_open("ListError", rp,
- "Regular file lacks read permissions")
-
def Iterate_fast(self, rpath, sel_func):
"""Like Iterate, but don't recur, saving time"""
def error_handler(exc, filename):