tfix console: python3 exec - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit e91aa882ba4b5e556b5bff519213eac4cf4eafa2
DIR parent 6e936db94a028068eaabf4ddb983a2e012abdacd
HTML Author: ThomasV <thomasv@electrum.org>
Date: Mon, 25 Sep 2017 23:33:11 +0200
fix console: python3 exec
Diffstat:
M gui/qt/console.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/console.py b/gui/qt/console.py
t@@ -224,7 +224,7 @@ class Console(QtWidgets.QPlainTextEdit):
self.appendPlainText(repr(result))
except SyntaxError:
# exec is generally considered bad practice. use it wisely!
- exec(command) in self.namespace
+ exec(command, self.namespace, self.namespace)
except SystemExit:
self.close()
except Exception: