Permalink
Browse files

fix Py3 glitch in lxml.html

  • Loading branch information...
1 parent 73e30e4 commit a79e1d19665bbff2388494e33b435ad32e63f9fc @scoder scoder committed Mar 26, 2013
Showing with 4 additions and 1 deletion.
  1. +3 −0 CHANGES.txt
  2. +1 −1 src/lxml/html/__init__.py
View
@@ -11,6 +11,9 @@ Features added
Bugs fixed
----------
+* LP#1160386: Write access to ``lxml.html.FormElement.fields`` raised
+ an AttributeError in Py3.
+
* Illegal memory access during cleanup in incremental xmlfile writer.
Other changes
@@ -769,7 +769,7 @@ def _fields__get(self):
return FieldsDict(self.inputs)
def _fields__set(self, value):
prev_keys = self.fields.keys()
- for key, value in value.iteritems():
+ for key, value in value.items():
if key in prev_keys:
prev_keys.remove(key)
self.fields[key] = value

0 comments on commit a79e1d1

Please sign in to comment.