]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/metadata.py
Metadata: specify __slots__
[bup.git] / lib / bup / metadata.py
index 83f04f771475457641c96e369d500b45be946a0b..7e8329cd8f6db3b58cdd827794ed195280f6c7b3 100644 (file)
@@ -711,6 +711,9 @@ class Metadata:
                     raise
 
     def __init__(self):
+        __slots__ = ('mode', 'uid', 'atime', 'mtime', 'ctime',
+                     'path', 'size', 'symlink_target', 'hardlink_target',
+                     'linux_attr', 'linux_xattr', 'posix1e_acl')
         self.mode = self.uid = self.gid = self.user = self.group = None
         self.atime = self.mtime = self.ctime = None
         # optional members