electrum

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

commit 6dc9bfbe07937fbbc198d07e26ca5a976173d4b4
parent 993a8acb3eea07d778fb8fb4ee1a2233f8899ff9
Author: ThomasV <thomasv@gitorious>
Date:   Wed, 20 Nov 2013 07:37:14 +0100

fix default value in storage.get

Diffstat:
Mlib/wallet.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -125,7 +125,10 @@ class WalletStorage: def get(self, key, default=None): - return self.data.get(key, default) + v = self.data.get(key) + if v is None: + v = default + return v def put(self, key, value, save = True):