Skip to content

Commit

Permalink
Fixing some docstring and comment typos in Deferred.
Browse files Browse the repository at this point in the history
  • Loading branch information
wiml committed Apr 4, 2021
1 parent 12d53db commit 6924417
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/twisted/internet/defer.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ def __init__(
@param canceller: a callable used to stop the pending operation
scheduled by this L{Deferred} when L{Deferred.cancel} is invoked.
The canceller will be passed the deferred whose cancelation is
requested (i.e., self).
The canceller will be passed the deferred whose cancellation is
requested (i.e., C{self}).
If a canceller is not given, or does not invoke its argument's
C{callback} or C{errback} method, L{Deferred.cancel} will
Expand Down Expand Up @@ -586,7 +586,7 @@ def timeItOut() -> None:

def convertCancelled(value: object) -> object:
# if C{deferred} was timed out, call the translation function,
# if provdied, otherwise just use L{cancelledToTimedOutError}
# if provided, otherwise just use L{cancelledToTimedOutError}
if timedOut[0]:
toCall = onTimeoutCancel or _cancelledToTimedOutError
return toCall(value, timeout)
Expand Down

0 comments on commit 6924417

Please sign in to comment.