[medusa] Possible small bugs in counter.py and auth_handler.py?

Skip Montanaro skip@p...
Fri, 8 Jun 2001 09:55:46 -0500


Van> If I change the line

>>>> return str(long(self.value))[:-1]

Van> to

>>>> return str(long(self.value))

Van> printing the counter now works correctly.

Yes, str's handling of longs changed in 1.6, so if you are using longs in
1.6 or beyond, you have to check/change such code. In 1.5 and earlier
versions, str(long(1)) would have returned "1L" instead of just "1".

-- 
Skip Montanaro (skip@p...)
(847)971-7098