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-861f7616d084
master
Dennis Schridde 2008-03-23 00:33:16 +00:00
parent 2ba55d14a8
commit 39f34056a9
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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):