Skip to content

Commit

Permalink
chiral.net.tcp: change TCPConnection.connection_handler() to raise No…
Browse files Browse the repository at this point in the history
…tImplementedError within a generator

function. As a result, one may create and manipulate a bare TCPConnection as long as it is never actually
start()ed. 



git-svn-id: http://chiral.j4cbo.com/svn/trunk@87 a827fe29-2235-0410-a7a9-cacdfe24a5d3
  • Loading branch information
jacob committed Dec 30, 2007
1 parent 79d22f4 commit a8c2e9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chiral/net/tcp.py
Expand Up @@ -49,6 +49,7 @@ def connection_handler(self):
is initialized. It should be overridden in the derived class.
"""
raise NotImplementedError
yield

def connection_handler_completed(self, value, exception):
"""
Expand Down

0 comments on commit a8c2e9e

Please sign in to comment.