Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Aymeric Augustin authored July 25, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/utils/datastructures.py
1  django/utils/datastructures.py
@@ -347,6 +347,7 @@ def setlistdefault(self, key, default_list=None):
347 347
             if default_list is None:
348 348
                 default_list = []
349 349
             self.setlist(key, default_list)
  350
+            return default_list
350 351
         return self.getlist(key)
351 352
 
352 353
     def appendlist(self, key, value):

0 notes on commit 942818e

Please sign in to comment.
Something went wrong with that request. Please try again.