Mercurial > libervia-backend
diff sat/plugins/plugin_dbg_manhole.py @ 3134:48eafdab1c34
plugin manhole: added `d` to namespace as shortcut for defer.ensureDeferred
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Jan 2020 22:27:42 +0100 |
parents | 2b0f739f8a46 |
children | 9d0df638c8b4 |
line wrap: on
line diff
--- a/sat/plugins/plugin_dbg_manhole.py Tue Jan 28 22:26:12 2020 +0100 +++ b/sat/plugins/plugin_dbg_manhole.py Tue Jan 28 22:27:42 2020 +0100 @@ -22,7 +22,7 @@ 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 @@ "host": self.host, "C": C, "jid": jid, + "d": defer.ensureDeferred, } f.protocol = lambda: TelnetTransport(TelnetBootstrapProtocol, insults.ServerProtocol,