From 5d83bcba1467808de5f08d37701ff2ad48b26a49 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 7 Jan 2017 17:25:09 +0100 Subject: [PATCH] don't expose default servers and ports in __init__ --- gui/qt/network_dialog.py | 2 +- lib/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py index de6269b88..1c9b1a3cc 100644 --- a/gui/qt/network_dialog.py +++ b/gui/qt/network_dialog.py @@ -27,7 +27,7 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * from electrum.i18n import _ -from electrum import DEFAULT_PORTS +from electrum.network import DEFAULT_PORTS from electrum.network import serialize_server, deserialize_server from util import * diff --git a/lib/__init__.py b/lib/__init__.py index f2fb650cf..c8182d2ec 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -2,7 +2,7 @@ from version import ELECTRUM_VERSION from util import format_satoshis, print_msg, print_error, set_verbosity from wallet import Synchronizer, WalletStorage, Wallet, Imported_Wallet from coinchooser import COIN_CHOOSERS -from network import Network, DEFAULT_SERVERS, DEFAULT_PORTS, pick_random_server +from network import Network, pick_random_server from interface import Connection, Interface from simple_config import SimpleConfig, get_config, set_config import bitcoin