[CalendarServer-changes] [5563] CalendarServer/branches/users/wsanchez/transations/txdav/ propertystore/xattr.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 4 16:59:05 PDT 2010
Revision: 5563
http://trac.macosforge.org/projects/calendarserver/changeset/5563
Author: glyph at apple.com
Date: 2010-05-04 16:59:03 -0700 (Tue, 04 May 2010)
Log Message:
-----------
Minor fix
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/transations/txdav/propertystore/xattr.py
Modified: CalendarServer/branches/users/wsanchez/transations/txdav/propertystore/xattr.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/txdav/propertystore/xattr.py 2010-05-04 23:56:36 UTC (rev 5562)
+++ CalendarServer/branches/users/wsanchez/transations/txdav/propertystore/xattr.py 2010-05-04 23:59:03 UTC (rev 5563)
@@ -83,6 +83,12 @@
)
def __init__(self, path):
+ """
+ Initialize a L{PropertyStore}.
+
+ @param path: the path to set extended attributes on.
+ @type path: L{CachingFilePath}
+ """
self.path = path
self.attrs = xattr(path.path)
self.removed = set()
@@ -117,7 +123,7 @@
try:
data = self.attrs[self._encodeKey(key)]
except IOError, e:
- if e.errno in _ERRNO_NO_ATTR:
+ if e.errno in [_ERRNO_NO_ATTR]:
raise KeyError(key)
raise PropertyStoreError(e)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100504/29e7941c/attachment.html>
More information about the calendarserver-changes
mailing list