Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56799 - moinmoin filesys.py causes Python FutureWarning on hex/oct constants in Apache 2 error_log
Summary: moinmoin filesys.py causes Python FutureWarning on hex/oct constants in Apach...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-12 08:46 UTC by John Whitlock
Modified: 2004-08-30 10:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Whitlock 2004-07-12 08:46:42 UTC
The moinmoin package (Python wikiwiki) causes the following error in the apache error log (/var/log/apache/error_log):

[error header] /usr/lib/python2.3/site-packages/MoinMoin/util/filesys.py:106: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
[error header]   __highbits = 0xffff0000  # XXX FIXME, gives Python2.3 warning.

Fix is to change line 106:
__highbits = 0xffff0000
to:
__highbits = long("0xffff0000", 16)
Comment 1 John Whitlock 2004-07-14 13:14:06 UTC
Fix is wrong - should be
__highbits = long("0xffff0000", 32)
because, of course, 0xffff0000 is a 32-bit value.
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2004-08-30 10:55:55 UTC
http://moinmoin.wikiwikiweb.de/MoinMoinBugs_2fFutureErrorInFilesys

Upstream is aware, should be fixed in 1.3