File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class SplitNetstringReceiver(object):
51
51
def __init__ (self , sender ):
52
52
self .sender = sender
53
53
54
- def prepareParsing (self ):
54
+ def prepareParsing (self , parser ):
55
55
pass
56
56
57
57
def finishParsing (self , reason ):
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class NetstringReceiver(object):
29
29
def __init__ (self , sender ):
30
30
self .sender = sender
31
31
32
- def prepareParsing (self ):
32
+ def prepareParsing (self , parser ):
33
33
pass
34
34
35
35
def finishParsing (self , reason ):
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class NetstringReceiver(object):
30
30
def __init__ (self , sender ):
31
31
self .sender = sender
32
32
33
- def prepareParsing (self ):
33
+ def prepareParsing (self , parser ):
34
34
pass
35
35
36
36
def finishParsing (self , reason ):
Original file line number Diff line number Diff line change @@ -71,10 +71,11 @@ example:
71
71
72
72
The receiver factory is another one-argument callable which is passed the
73
73
constructed sender. The returned object must at least have ``prepareParsing ``
74
- and ``finishParsing `` methods. ``prepareParsing `` is called when a connection
75
- is established (i.e. in the ``connectionMade `` of the ``ParserProtocol ``) and
76
- ``finishParsing `` is called when a connection is closed (i.e. in the
77
- ``connectionLost `` of the ``ParserProtocol ``).
74
+ and ``finishParsing `` methods. ``prepareParsing `` is called with the
75
+ ``ParserProtocol `` instance when a connection is established (i.e. in the
76
+ ``connectionMade `` of the ``ParserProtocol ``) and ``finishParsing `` is called
77
+ when a connection is closed (i.e. in the ``connectionLost `` of the
78
+ ``ParserProtocol ``).
78
79
79
80
.. note ::
80
81
Both the receiver factory and its returned object's ``prepareParsing `` are
You can’t perform that action at this time.
0 commit comments