summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-01-20 16:33:44 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-01-20 16:33:44 +0000
commitecd725b6cbee44325538e98d91bea243238a05f5 (patch)
treec46f89f8bdfdf739176e18eae00bbf0e0daf8c29
parent68055e1e263695276a439b440d4f390f60f59b11 (diff)
downloadrdiff-backup-ecd725b6cbee44325538e98d91bea243238a05f5.tar.gz
__str__ method for ACL's shouldn't fail on empty ones
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@873 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/eas_acls.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py
index 25587d3..30b985e 100644
--- a/rdiff-backup/rdiff_backup/eas_acls.py
+++ b/rdiff-backup/rdiff_backup/eas_acls.py
@@ -228,6 +228,7 @@ class AccessControlLists:
def __str__(self):
"""Return text version of acls"""
+ if not self.entry_list: return ""
slist = map(self.entrytuple_to_text, self.entry_list)
if self.default_entry_list:
slist.extend(map(lambda e: "default:" + self.entrytuple_to_text(e),