Skip to content

Commit

Permalink
No longer necessary to extend protocol.Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Oct 21, 2011
1 parent 0a97615 commit 422dc87
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tcp.py
Expand Up @@ -15,9 +15,7 @@ def __call__(ctx):

@untwisted.call
class factory(protocol.ClientFactory):

# Extend protocol.Protocol for .connectionLost()
class protocol(protocol.Protocol):
class protocol:
def __init__(ctx):
ctx.connectionLost = promise.promise()

Expand Down Expand Up @@ -56,9 +54,7 @@ def listen(port, interface=''):

@untwisted.call
class factory(protocol.Factory):

# Extend protocol.Protocol for .connectionLost()
class protocol(protocol.Protocol):
class protocol:
def __init__(ctx):
ctx.connectionLost = promise.promise()

Expand Down

0 comments on commit 422dc87

Please sign in to comment.