Skip to content

Commit

Permalink
Rolled back a unnecessary change in 8f00286.
Browse files Browse the repository at this point in the history
This keeps the implementation of setdefault and setlistdefault
consistent. Also it's marginally faster than looking up the value
again.
  • Loading branch information
aaugustin committed Jul 25, 2012
1 parent 8229214 commit 942818e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/utils/datastructures.py
Expand Up @@ -347,6 +347,7 @@ def setlistdefault(self, key, default_list=None):
if default_list is None:
default_list = []
self.setlist(key, default_list)
return default_list
return self.getlist(key)

def appendlist(self, key, value):
Expand Down

0 comments on commit 942818e

Please sign in to comment.