git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
993a8ac
)
fix default value in storage.get
author
ThomasV
<thomasv@gitorious>
Wed, 20 Nov 2013 06:37:14 +0000 (07:37 +0100)
committer
ThomasV
<thomasv@gitorious>
Wed, 20 Nov 2013 06:37:14 +0000 (07:37 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
fc9cc56
..
2cc0101
100644
(file)
--- 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):