[Email-SIG] LazyImporter not callable
Mark Sapiro
msapiro at value.net
Sun Dec 24 20:56:59 CET 2006
p666 wrote:
>
>under python 2.5 mac os X
>the following code
>
>import email
>a = email.Message()
>
>
>raises the following exception
>
>
>TypeError: 'LazyImporter' object is not callable
And under prior email versions it would have raised the exception
TypeError: 'module' object is not callable
You want
a = email.Message.Message()
or per the new PEP 8 conformant naming
a = email.message.Message()
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Email-SIG
mailing list