Re: Archivemail syntaxwarning
On Fri, 2003-09-05 at 18:19, D.J. Bolderman wrote:
> Hi guys,
>
> On my unstable box, when I run:
>
> /usr/bin/archivemail -d1 -q -u --preserve-unread -o $HOME/Mailarchive $HOME/Maildir/.mailinglist*
>
> I get:
>
> /usr/bin/archivemail:765: SyntaxWarning: assignment to None
> (None, last_dir) = os.path.split(os.path.dirname(message.fp.name))
That message is a warning from the python interpreter. I imagine that is
because you have python2.3 installed and linked to by /usr/bin/python
eg:
Python 2.2.2 (#1, Mar 21 2003, 23:01:54)
[GCC 3.2.3 20030316 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> None, a = ('a', 'b')
>>>
Python 2.3a2+ (#2, Mar 21 2003, 22:13:05)
[GCC 3.2.3 20030316 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> None, a = ('a', 'b')
<stdin>:1: SyntaxWarning: assignment to None
>>>
You can ignore the message, it is only a warning, or if you don't want
to see it, change that line to
(IDontLikeWarnings, last_dir) = os.path.split(os.path.dirname(message.fp.name))
-Mark
Reply to: