Import from __future__ has to be first in file. Additionaly let the lobby tester connect to lobby.wz2100.net
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4234 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
2ba55d14a8
commit
39f34056a9
|
@ -17,6 +17,11 @@
|
|||
# v1.0 by Freddie Witherden (EvilGuru)
|
||||
# v2.0 by Gerhard Schaden (gschaden)
|
||||
# --------------------------------------------------------------------------
|
||||
#
|
||||
################################################################################
|
||||
# import from __future__
|
||||
from __future__ import with_statement
|
||||
|
||||
#
|
||||
################################################################################
|
||||
#
|
||||
|
@ -31,9 +36,6 @@ This script runs a Warzone 2100 2.x masterserver
|
|||
################################################################################
|
||||
# Get the things we need.
|
||||
|
||||
#import the new with statement, has to be the first expression
|
||||
from __future__ import with_statement
|
||||
|
||||
import sys
|
||||
import SocketServer
|
||||
import struct
|
||||
|
|
|
@ -37,7 +37,7 @@ import SocketServer
|
|||
import time
|
||||
import struct
|
||||
|
||||
server="localhost"
|
||||
server="lobby.wz2100.net"
|
||||
|
||||
# simulate a gameserver
|
||||
class RequestHandler(SocketServer.ThreadingMixIn, SocketServer.StreamRequestHandler):
|
||||
|
|
Loading…
Reference in New Issue