Commit 6d8c096c authored by owsla's avatar owsla

__str__ method for ACL's shouldn't fail on empty ones


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@873 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 1214667a
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment