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

flake8.

parent 7c11c4d6
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,9 @@ def get_wordlist_names():
for filename in filenames:
if not os.path.isfile(os.path.join(WORDLISTS_DIR, filename)):
continue
if not "_" in filename:
if "_" not in filename:
continue
if not "." in filename:
if "." not in filename:
continue
basename = filename.split(".")[0]
name = basename.split("_", 1)[1]
......
......@@ -40,7 +40,6 @@ def argv_handler(request):
def wordlists_dir(request, monkeypatch, tmpdir):
"""This fixture provides a temporary wordlist dir.
"""
_orig_wordlists_dir = WORDLISTS_DIR
monkeypatch.setattr("diceware.WORDLISTS_DIR", str(tmpdir))
return tmpdir
......
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