Commits

Jason R. Coombs committed c0360c1

Fixed deprecation warning in lxml usage

Comments (0)

Files changed (1)

openpack/basepack.py

 			if attr is None:
 				ns, attr = parse_tag(tag)
 			elem = xml.find(tag)
-			if elem and elem.text:
+			if elem is not None and elem.text:
 				value = transform(elem.text)
 				setattr(self, attr, value)
 		map(set_attr_if_tag, (