default lang is None
This commit is contained in:
parent
8ca66e7020
commit
7275955eef
|
@ -99,7 +99,8 @@ class Mnemonic(object):
|
||||||
# Seed derivation no longer follows BIP39
|
# Seed derivation no longer follows BIP39
|
||||||
# Mnemonic phrase uses a hash based checksum, instead of a wordlist-dependent checksum
|
# 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')
|
filename = filenames.get(lang[0:2], 'english.txt')
|
||||||
path = os.path.join(util.data_dir(), 'wordlist', filename)
|
path = os.path.join(util.data_dir(), 'wordlist', filename)
|
||||||
s = open(path,'r').read().strip()
|
s = open(path,'r').read().strip()
|
||||||
|
|
Loading…
Reference in New Issue