Skip to content
Snippets Groups Projects
Commit 293aff0e authored by ulif's avatar ulif
Browse files

Bring 2.x coverage back to 100%.

parent d43bfb51
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,12 @@ RE_WORDLIST_NAME = re.compile('^[a-zA-Z0-9_-]+$')
#: A regular expression matching numbered entries in wordlists.
RE_NUMBERED_WORDLIST_ENTRY = re.compile('^[0-9]+\s+([^\s]+)$')
# A workaround to avoid `six` dependency.
try:
basestring
except NameError: # NOQA # pragma: no cover
basestring = str
def get_wordlist_names():
"""Get a all names of wordlists stored locally.
......@@ -133,11 +139,6 @@ def get_wordlist_path(name):
basename = 'wordlist_%s.txt' % name
return os.path.join(WORDLISTS_DIR, basename)
try:
basestring
except NameError:
basestring = str
class WordList(object):
"""A word list contains words for building passphrases.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment