Menu

Commit [r8649]  Maximize  Restore  History

Follow-up to r8648, as on Windows Vista x64, Python 2.3.5 would fail with `ValueError: empty range for randrange()`.

This is because 0xffffffff is -1, in Python 2.3:
{{{
>>> 0xffffffff
<stdin>:1: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
-1
}}}

cboos 2009-10-07

changed /branches/0.11-stable/trac/util/__init__.py
/branches/0.11-stable/trac/util/__init__.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB