Commits

Jakub Wilk committed 98b9171

diff-Contents-gz: make Arch caching actually work.

Comments (0)

Files changed (1)

         try:
             return Arch._cache[name]
         except KeyError:
-            return object.__new__(cls)
+            new = object.__new__(cls)
+            Arch._cache[name] = new
+            return new
 
     def __init__(self, name):
         self._name = name