Browse Source

Implement Signature.__deepcopy__. (Issue #1078)

Ask Solem 12 years ago
parent
commit
e6a7b60ebe
1 changed files with 4 additions and 0 deletions
  1. 4 0
      celery/canvas.py

+ 4 - 0
celery/canvas.py

@@ -185,6 +185,10 @@ class Signature(dict):
             return chain(self, other)
         return NotImplemented
 
+    def __deepcopy__(self, memo):
+        memo[id(self)] = self
+        return dict(self)
+
     def __invert__(self):
         return self.apply_async().get()