tdefault lang is None - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7275955eef66a53dbf49b4a4d23579ca039e3cb1 DIR parent 8ca66e70209332fe6dc743ac704152c5bf68c347 HTML Author: ThomasV <thomasv@gitorious> Date: Sun, 14 Sep 2014 19:54:28 +0200 default lang is None Diffstat: M lib/mnemonic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/mnemonic.py b/lib/mnemonic.py t@@ -99,7 +99,8 @@ class Mnemonic(object): # Seed derivation no longer follows BIP39 # Mnemonic phrase uses a hash based checksum, instead of a wordlist-dependent checksum - def __init__(self, lang='en'): + def __init__(self, lang=None): + if lang is None: lang='en' filename = filenames.get(lang[0:2], 'english.txt') path = os.path.join(util.data_dir(), 'wordlist', filename) s = open(path,'r').read().strip()