summaryrefslogtreecommitdiff
path: root/webtest
diff options
context:
space:
mode:
authorGeorges Dubus <georges.dubus@compiletoi.net>2013-04-17 13:07:15 +0200
committerGeorges Dubus <georges.dubus@compiletoi.net>2013-04-17 13:07:15 +0200
commit7c57f7b78c168b44f02baa307497054029a3418b (patch)
tree08063d55ffd698a223b73c507c9c504c331d2f7d /webtest
parentf7a7531aa0a6622d4b65d6be8fdb9e3fba787ccf (diff)
downloadwebtest-7c57f7b78c168b44f02baa307497054029a3418b.tar.gz
Do not alter the BeautifulSoup object when parsing forms.
Diffstat (limited to 'webtest')
-rw-r--r--webtest/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/forms.py b/webtest/forms.py
index 4772156..ab66ae2 100644
--- a/webtest/forms.py
+++ b/webtest/forms.py
@@ -371,7 +371,7 @@ class Form(object):
field_order = []
tags = ('input', 'select', 'textarea', 'button')
for pos, node in enumerate(self.html.findAll(tags)):
- attrs = node.attrs
+ attrs = dict(node.attrs)
tag = node.name
name = None
if 'name' in attrs: