tqt console: failed to print certain objects with custom __eq__ - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b11cb11d95a99c31747dd1f2021d370311e8b81b DIR parent f38eed2fad96ecad0fe46ffdc4d3058351cad748 HTML Author: SomberNight <somber.night@protonmail.com> Date: Sun, 5 May 2019 17:59:45 +0200 qt console: failed to print certain objects with custom __eq__ Diffstat: M electrum/gui/qt/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py t@@ -252,7 +252,7 @@ class Console(QtWidgets.QPlainTextEdit): try: # eval is generally considered bad practice. use it wisely! result = eval(command, self.namespace, self.namespace) - if result != None: + if result is not None: if self.is_json: util.print_msg(util.json_encode(result)) else: