Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenulAbidin authored Nov 26, 2020
1 parent aac6eb8 commit c302a9d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Here are some of the anticipated uses of the BIP39 Validator API.
f = open('wordlist-en.txt')
try:
wordlist = BIP39Wordlist('English wordlist', f)
wordlist = BIP39Wordlist('English wordlist', handle=f)
wordlist.test_lev_distance(2)
# At this point, no word pairs have Levenshtein distance < 2.
except ValidationFailed as e:
Expand All @@ -196,7 +196,7 @@ Here are some of the anticipated uses of the BIP39 Validator API.
f = open('wordlist-en.txt')
try:
wordlist = BIP39Wordlist('English wordlist', f)
wordlist = BIP39Wordlist('English wordlist', handle=f)
wordlist.test_lev_distance(2)
# At this point, the percentage and number of
# words fulfilling the condition are 0.
Expand All @@ -216,7 +216,7 @@ Here are some of the anticipated uses of the BIP39 Validator API.
f = open('wordlist-en.txt')
try:
wordlist = BIP39Wordlist('English wordlist', f)
wordlist = BIP39Wordlist('English wordlist', handle=f)
wordlist.test_initial_chars(4)
# At this point, all words are unique in at least 4 initial characters
except ValidationFailed as e:
Expand All @@ -235,7 +235,7 @@ Here are some of the anticipated uses of the BIP39 Validator API.
f = open('wordlist-en.txt')
try:
wordlist = BIP39Wordlist('English wordlist', f)
wordlist = BIP39Wordlist('English wordlist', handle=f)
wordlist.test_initial_chars(4)
# At this point, the percentage and number of
# words fulfilling the condition are 0.
Expand All @@ -256,7 +256,7 @@ Here are some of the anticipated uses of the BIP39 Validator API.
f = open('wordlist-en.txt')
try:
wordlist = BIP39Wordlist('English wordlist', f)
wordlist = BIP39Wordlist('English wordlist', handle=f)
wordlist.test_max_length(8)
# At this point, all words are no longer than 8 characters
except ValidationFailed as e:
Expand All @@ -276,7 +276,7 @@ Here are some of the anticipated uses of the BIP39 Validator API.
f = open('wordlist-en.txt')
try:
wordlist = BIP39Wordlist('English wordlist', f)
wordlist = BIP39Wordlist('English wordlist', handle=f)
wordlist.test_max_length(8)
# At this point, the percentage and number of
# words fulfilling the condition are 0.
Expand Down Expand Up @@ -305,7 +305,7 @@ Then install the module dependencies using:

.. code-block:: sh
pip3 install -r requirements.txt
pip3 install -r requirements.txt -r dev-requirements.txt
.. end_local_development
Expand Down

0 comments on commit c302a9d

Please sign in to comment.