electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 188a6716817edfdef2248091ce440028d4f15972
parent 02ba760c39b04a658897a3a3d01d07e0c861dddc
Author: Amir Taaki <genjix@riseup.net>
Date:   Sat,  7 Jul 2012 19:53:54 +0100

Corrected import paths for print_error.

Diffstat:
Melectrum | 5++++-
Mlib/gui.py | 2+-
Mlib/gui_qt.py | 2+-
Mlib/interface.py | 2+-
Mremote_wallet.py | 5++++-
Mupgrade.py | 7++-----
6 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/electrum b/electrum @@ -17,7 +17,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import re, sys -from lib.util import print_error +try: + from lib.util import print_error +except ImportError: + from electrum.util import print_error try: import ecdsa diff --git a/lib/gui.py b/lib/gui.py @@ -23,7 +23,7 @@ import pygtk pygtk.require('2.0') import gtk, gobject from decimal import Decimal -from lib.util import print_error +from util import print_error import pyqrnative, mnemonic diff --git a/lib/gui_qt.py b/lib/gui_qt.py @@ -18,7 +18,7 @@ import sys, time, datetime, re from i18n import _ -from lib.util import print_error +from util import print_error try: import PyQt4 diff --git a/lib/interface.py b/lib/interface.py @@ -21,7 +21,7 @@ import random, socket, ast, re import threading, traceback, sys, time, json, Queue from version import ELECTRUM_VERSION -from lib.util import print_error +from util import print_error DEFAULT_TIMEOUT = 5 DEFAULT_SERVERS = [ 'ecdsa.org:50001:t', diff --git a/remote_wallet.py b/remote_wallet.py @@ -21,7 +21,10 @@ import time, thread, sys, socket # see http://code.google.com/p/jsonrpclib/ import jsonrpclib from wallet import Wallet -from lib.util import print_error +try: + from lib.util import print_error +except ImportError: + from electrum.util import print_error """ Simple wallet daemon for webservers. diff --git a/upgrade.py b/upgrade.py @@ -3,13 +3,10 @@ from version import SEED_VERSION try: from lib import prompt_password + from lib.util import print_error except ImportError: from electrum import prompt_password - -from lib.uril import print_error - - - + from electrum.util import print_error if __name__ == "__main__": try: