small changes
This commit is contained in:
parent
a7de95ca0b
commit
b1846ac8ea
@ -369,7 +369,7 @@ def create_mnemonic(entropy, language='english'):
|
|||||||
return mnemonic[::-1]
|
return mnemonic[::-1]
|
||||||
|
|
||||||
|
|
||||||
def create_wordlist(language='english', wordlist_dir=BIP0039_DIR):
|
def create_wordlist(language='english', wordlist_dir=None):
|
||||||
"""
|
"""
|
||||||
Creating the wordlist.
|
Creating the wordlist.
|
||||||
|
|
||||||
@ -377,6 +377,8 @@ def create_wordlist(language='english', wordlist_dir=BIP0039_DIR):
|
|||||||
:param str wordlist_dir: path to a file containing a list of words.
|
:param str wordlist_dir: path to a file containing a list of words.
|
||||||
:return: list of words.
|
:return: list of words.
|
||||||
"""
|
"""
|
||||||
|
if not wordlist_dir:
|
||||||
|
wordlist_dir = BIP0039_DIR
|
||||||
f = None
|
f = None
|
||||||
path = os.path.join(wordlist_dir, '.'.join((language, 'txt')))
|
path = os.path.join(wordlist_dir, '.'.join((language, 'txt')))
|
||||||
assert os.path.exists(path)
|
assert os.path.exists(path)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user