Made MultiValueDict.__deepcopy__()'s memo kwarg an arg.

It's always provided.
This commit is contained in:
Daniel F Moisset 2017-04-07 15:13:57 +02:00 committed by Tim Graham
parent c4536c4a54
commit 5d3b322dce
1 changed files with 1 additions and 3 deletions

View File

@ -91,9 +91,7 @@ class MultiValueDict(dict):
for k, v in self.lists()
])
def __deepcopy__(self, memo=None):
if memo is None:
memo = {}
def __deepcopy__(self, memo):
result = self.__class__()
memo[id(self)] = result
for key, value in dict.items(self):