Skip to content
Browse files

remove params with None values

  • Loading branch information...
1 parent d1fa22e commit 0e46975d087f5963b44c65696bc8e64acd1858a6 @baverman committed Mar 24, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 swoop/form.py
View
3 swoop/form.py
@@ -1,4 +1,3 @@
-import urlparse
from collections import OrderedDict
from .request import Request
@@ -142,7 +141,7 @@ def get_request_for_form(response, action=None, id=None, idx=None, name=None, su
vname, '] ['.join(params.keys())))
if value is None:
- params[vname] = None
+ params.pop(vname, None)
elif vname in possible_values:
if value not in possible_values[vname].values:
raise ContentException(

0 comments on commit 0e46975

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