From b741212319d6026b77ebca6f71cfcd3696a54043 Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Fri, 17 Jul 2015 15:49:14 +0200
Subject: [PATCH] flake8.

---
 diceware/__init__.py   | 4 ++--
 tests/test_diceware.py | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/diceware/__init__.py b/diceware/__init__.py
index 8a87c7a..bec78de 100644
--- a/diceware/__init__.py
+++ b/diceware/__init__.py
@@ -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]
diff --git a/tests/test_diceware.py b/tests/test_diceware.py
index 6c19b26..95e3e4d 100644
--- a/tests/test_diceware.py
+++ b/tests/test_diceware.py
@@ -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
 
-- 
GitLab