getmail FutureWarning with python2.3


Some python (I assume) update on an old Centos box made getmail bork:

/usr/lib/python2.3/optparse.py:668: FutureWarning: %u/%o/%x/%X of negative int will
return a signed string in Python 2.4 and up
return ("<%s at 0x%x: %r>"

It gets more than a little annoying when you get emailed those few lines several hundred times per day. However, according to the getmail FAQ, it’s not their fault – it’s the nasty evil lazy python developers’ fault.

Changing the top of the /usr/bin/getmail file to ignore the warning made it go away:

#!/usr/bin/python -Wignore::FutureWarning

,

  1. No comments yet.
(will not be published)


Comments are closed.

css.php