          return r
  
      def _decode(clazz, name):
-@@ -97,19 +95,41 @@
+@@ -97,20 +96,51 @@
  
      def get(self, qname):
          try:
 -            value = self.attrs[self._encode(qname)]
 +            data = self.attrs[self._encode(qname)]
-+            try:
-+                value = decompress(data)
-+            except zlib.error:
-+                # Value is not compressed; data was stored by old
-+                # code.  This is easy to handle, so let's keep
-+                # compatibility here.
-+                value = data
-+            del data
          except KeyError:
              raise HTTPError(StatusResponse(
                  responsecode.NOT_FOUND,

+            else:
+                break
+    
 
         # Update the resource because we've modified it
         self.resource.fp.restat()

===================================================================
--- twisted/web2/dav/xattrprops.py	(revision 19773)
+++ twisted/web2/dav/xattrprops.py	(working copy)
@@ -33,12 +33,19 @@
 
 import urllib
 import sys
