diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-10-02 15:26:29 -0700 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-10-02 15:26:29 -0700 |
commit | 5070f2ffcfcb85925aab46e51079605b8d7f065d (patch) | |
tree | 6767ffe65340499b37cae2e5cd7fc8efb9015143 | |
parent | b219b523c2abcb9106622a100c16d2106534f47a (diff) |
Oops, missed another << operator to replace with _shl().
For python 2.3, of course.
-rw-r--r-- | server.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |