Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rolled back a unnecessary change in 8f00286.

This keeps the implementation of setdefault and setlistdefault
consistent. Also it's marginally faster than looking up the value
again.
  • Loading branch information...
commit 942818e1b35aefd382f45f1b4552ea250f5e1090 1 parent 8229214
@aaugustin aaugustin authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/utils/datastructures.py
View
1  django/utils/datastructures.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.