Oops, missed another << operator to replace with _shl().

For python 2.3, of course.
This commit is contained in:
Avery Pennarun 2010-10-02 15:26:29 -07:00
parent b219b523c2
commit 5070f2ffcf

View File

@ -37,7 +37,7 @@ def _maskbits(netmask):
if not netmask:
return 32
for i in range(32):
if netmask[0] & (1<<i):
if netmask[0] & _shl(1, i):
return 32-i
return 0