commit 028ab925ed5a1b4686861151042a2e93af49d2af
parent 80e15577b5a557d4973aa931f4a29419da45374b
Author: Neil Booth <kyuupichan@gmail.com>
Date: Sun, 24 Jan 2016 19:52:37 +0900
Remove unused imports
Diffstat:
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/electrum b/electrum
@@ -17,17 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from decimal import Decimal
import os
-import re
import sys
-import time
-import traceback
-
-import threading
-import socket
-import Queue
-from collections import defaultdict
script_dir = os.path.dirname(os.path.realpath(__file__))
@@ -78,7 +69,7 @@ if is_bundle or is_local or is_android:
from electrum import util
from electrum import SimpleConfig, Network, Wallet, WalletStorage
from electrum.util import print_msg, print_error, print_stderr, json_encode, json_decode, set_verbosity, InvalidPassword
-from electrum.plugins import Plugins, run_hook
+from electrum.plugins import Plugins
from electrum.commands import get_parser, known_commands, Commands, config_variables
from electrum.daemon import Daemon, get_daemon
@@ -312,7 +303,7 @@ if __name__ == '__main__':
# check uri
uri = config_options.get('url')
if uri:
- if not re.match('^bitcoin:', uri):
+ if not uri.startswith('bitcoin:'):
print_stderr('unknown command:', uri)
sys.exit(1)
config_options['url'] = uri