Legend:
- Unmodified
- Added
- Removed
-
client.py
r12 r13 19 19 "action":action, 20 20 "value":value } 21 return msg 21 22 22 23 class PokerClientProtocol(NetstringReceiver): … … 24 25 print "---------------" 25 26 pprinter(data) 27 if data["stat"] == "fail": 28 print "error?" 29 return 26 30 if data["you"]["required_action"]: 27 31 print "---------------" … … 34 38 vals = split(str,",") 35 39 vals.append(None) 36 self.sendString( cjson.encode(makeAction(vals[0], vals[1]))) 40 str = cjson.encode(makeAction(vals[0], vals[1])) 41 print "Sending %s" % str 42 self.sendString( str ) 37 43 38 44 def __init__(self,table_name, user_id, client_id ):
