I\'m using pylint + pydev, with python 2.6. I have a module with just this line of code
from email import Message
Now when I try to run this mo
realise this is an old question, but the correct answer is that the older ways of invoking what you need, which use the "import hackery" that Richie describes, have long been deprecated (despite still appearing in many tutorials). If you use the new ways, you'll be writing better code and pylint
won't complain.
e.g.
from email import Message
from email import Header
from email.MIMEText import MIMEText
should be
from email.message import Message
from email.header import Header
from email.mime.text import MIMEText
etc.