changeset 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 87b8808ac49d
children b9395c4df8b9
files sat/plugins/plugin_dbg_manhole.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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,