Commit 5070f2ff authored by Avery Pennarun's avatar Avery Pennarun

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

For python 2.3, of course.
parent b219b523
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment