Decoding MIME email

Tim Roberts timr at probo.com
Wed Aug 27 23:43:38 EDT 2003


Thomas Williams <tom_williams_2000_ca at yahoo.ca> wrote:
>
>Thanks, I tried it and it stop at:
>f = file("mail.txt")
>with the error message. 
>
>TypeError: 'str' object is not callable

I'll wager you have a line something like this before that:

  file = sys.argv[0]
  ....
  f = file("mail.txt")

Either do not use variables called "file", or replace the "file" with
"open" in your function call.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.




More information about the Python-list mailing list