Ticket #5399: doc-retval-of-addCallbacks.diff.txt

File doc-retval-of-addCallbacks.diff.txt, 782 bytes (added by zooko, 9 years ago)
Line 
1=== modified file 'twisted/internet/defer.py'
2--- twisted/internet/defer.py   2011-10-04 18:09:00 +0000
3+++ twisted/internet/defer.py   2011-11-19 14:00:55 +0000
4@@ -276,6 +276,8 @@
5         Add a pair of callbacks (success and error) to this L{Deferred}.
6 
7         These will be executed when the 'master' callback is run.
8+
9+        Returns self.
10         """
11         assert callable(callback)
12         assert errback == None or callable(errback)
13@@ -341,6 +343,8 @@
14         being returned from a callback, it is possible to cause the call
15         stack size limit to be exceeded by chaining many L{Deferred}s
16         together with C{chainDeferred}.
17+
18+        Returns self.
19         """
20         d._chainedTo = self
21         return self.addCallbacks(d.callback, d.errback)
22