plugin manhole: added d to namespace as shortcut for defer.ensureDeferred
This commit is contained in:
parent
8252c15beb
commit
4eeb1ef3e8
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ from sat.core.constants import Const as C
|
|||
from sat.core.log import getLogger
|
||||
from twisted.conch.insults import insults
|
||||
from twisted.conch.telnet import TelnetTransport, TelnetBootstrapProtocol
|
||||
from twisted.internet import reactor, protocol
|
||||
from twisted.internet import reactor, protocol, defer
|
||||
from twisted.words.protocols.jabber import jid
|
||||
from twisted.conch.manhole import ColoredManhole
|
||||
|
||||
|
|
@ -59,6 +59,7 @@ class Manhole(object):
|
|||
"host": self.host,
|
||||
"C": C,
|
||||
"jid": jid,
|
||||
"d": defer.ensureDeferred,
|
||||
}
|
||||
f.protocol = lambda: TelnetTransport(TelnetBootstrapProtocol,
|
||||
insults.ServerProtocol,
|
||||
|
|
|
|||
Loading…
Reference in a new issue