Rolled back a unnecessary change in 8f002867b2.

This keeps the implementation of setdefault and setlistdefault
consistent. Also it's marginally faster than looking up the value
again.
This commit is contained in:
Aymeric Augustin 2012-07-25 10:16:35 +02:00
parent 82292141a0
commit 942818e1b3
1 changed files with 1 additions and 0 deletions

View File

@ -347,6 +347,7 @@ class MultiValueDict(dict):
if default_list is None: if default_list is None:
default_list = [] default_list = []
self.setlist(key, default_list) self.setlist(key, default_list)
return default_list
return self.getlist(key) return self.getlist(key)
def appendlist(self, key, value): def appendlist(self, key, value):