Skip to content

Commit 42bc6d6

Browse files
committed
Two small changes to server.py that allow it to run on python2.2
1 parent 274ee85 commit 42bc6d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import generators # add yield for python2.2
12
import re, struct, socket, select, traceback, time
23
if not globals().get('skip_imports'):
34
import ssnet, helpers, hostwatch
@@ -43,7 +44,7 @@ def _maskbits(netmask):
4344

4445

4546
def _shl(n, bits):
46-
return n * int(2**bits)
47+
return n * long(2**bits)
4748

4849

4950
def _list_routes():

0 commit comments

Comments
 (0)