From: Vincent Le Gallic Date: Sun, 8 Feb 2015 21:47:13 +0000 (+0100) Subject: Lazy function X-Git-Url: http://gitweb.pimeys.fr/?p=NK2015_Client_Python_Alpha.git;a=commitdiff_plain;h=8021e49442ea00e7ebb39ea4b6e9e5bccdd639a4 Lazy function --- diff --git a/client.py b/client.py index 610d123..6f5d83e 100755 --- a/client.py +++ b/client.py @@ -97,6 +97,11 @@ def lit(socket): except ssl.SSLError: print "Rien à lire" +def do(stuff): + """Dirty, 'cause I'm lazy.""" + global a + a.write(json.dumps(stuff)) + if __name__=="__main__": where=raw_input("quel serveur ?") #port=int(raw_input("port ? "))