]> gitweb.pimeys.fr Git - NK2015_Client_Python_Alpha.git/commitdiff
Lazy function
authorVincent Le Gallic <legallic@crans.org>
Sun, 8 Feb 2015 21:47:13 +0000 (22:47 +0100)
committerVincent Le Gallic <legallic@crans.org>
Sun, 8 Feb 2015 21:47:13 +0000 (22:47 +0100)
client.py

index 610d1239a79ec115da6bbd5a60b4f5e00de14e92..6f5d83ed194d930084cd32ccadae123cb54d77c8 100755 (executable)
--- 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 ? "))