Skip to content

Commit

Permalink
removed ugly print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwe committed Aug 6, 2011
1 parent 5aef565 commit 748aa15
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client.py
Expand Up @@ -5,10 +5,8 @@ class Handler(asyncore.dispatcher_with_send):
def __init__(self, host, server, port=None):
asyncore.dispatcher_with_send.__init__(self, host, port)
self.server = server
print 'what about here'

def handle_read(self):
print 'hendle_read'
data = self.recv(4096)
print data
if(data):
Expand Down Expand Up @@ -42,10 +40,8 @@ def __init__(self, host, fqn, args, f=None, port = None):
self.f = f
else:
self.f = lambda *args: self.send(json.dumps({'fqn': fqn, 'name': 'rfc', 'args': args}))
print 'and what about here'

def handle_write(self):
print 'sender handle_write'
try:
self.f()
except Exception as inst:
Expand All @@ -70,11 +66,9 @@ def handle_accept(self):
sock, addr = pair
if self.writable():
f = lambda: self.send(json.dumps(self.funcs.keys()))
print 'here'
sender = Sender(sock, None, None, f=f)
if self.readable():
handler = Handler(sock, self)
print 'and here'

def handle_close(self):
self.close();
Expand Down

0 comments on commit 748aa15

Please sign in to comment.