Menu

#1049 undefined variable from import

open
Editor (491)
5
2010-01-17
2010-01-17
maho5
No

I have following import:

#v+
import db.sqa.conn as conn
#v-

and following line in code is marged as error with message "undefined variable from import: conn"

#v+
qel = conn.session.query(Entry).\ filter(Entry.date>=self.day).\ filter(Entry.date<self.day + timedelta(days=1)).\ order_by(Entry.date)
#v-

pydev v 1.5.3.x

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.