None should really have __len__

This commit is contained in:
Kenneth Reitz
2011-06-15 23:40:15 -04:00
parent 1985a205e1
commit 1bf005af45
+1 -1
View File
@@ -55,7 +55,7 @@ def get_dict(*keys, **extras):
data = request.data
form = request.form
if len(form) == 1 and not len(data):
if len(form) == 1 and not data:
if not form.values.pop():
data = form.keys().pop()
form = None