Undefined variable from import
Brought to you by:
fabioz
Using Python 2.6.6, Eclipse 3.6 and PyDev 2.2.2
The following gives "Undefined variable from import: parse" error on the third line:
from lxml import etree
with open('somefile.xml','r') as f:
tree = etree.parse(f)