commit fd2228feabadf9b3650e2376df573507a6d8e447
parent 31226b8a34c92b3e6c71cf4fab7c56bf73fe54e0
Author: ThomasV <thomasv@gitorious>
Date: Thu, 5 Jun 2014 16:29:23 +0200
replace import *
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/electrum b/electrum
@@ -39,8 +39,9 @@ if __builtin__.use_local_modules:
imp.load_module('electrum', *imp.find_module('lib'))
imp.load_module('electrum_gui', *imp.find_module('gui'))
-from electrum import * # todo: import * is generally frowned upon. should import just what is used
-from electrum.util import print_msg, print_stderr
+
+from electrum import SimpleConfig, Network, Wallet, WalletStorage, NetworkProxy, Commands, known_commands
+from electrum.util import print_msg, print_stderr, print_json, set_verbosity
# get password routine
def prompt_password(prompt, confirm=True):
@@ -130,9 +131,9 @@ def run_command(cmd, password=None, args=[]):
if type(result) == str:
- util.print_msg(result)
+ print_msg(result)
elif result is not None:
- util.print_json(result)
+ print_json(result)