Skip to content

Commit 560fba3

Browse files
committed
Acquiesce flake8
Signed-off-by: Matthias Büchse <[email protected]>
1 parent be27f25 commit 560fba3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/add_subject.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
import shutil
1414
import subprocess
1515
import sys
16-
import tempfile
1716

1817
try:
1918
from passlib.context import CryptContext
20-
import argon2
19+
import argon2 # noqa:F401
2120
except ImportError:
2221
print('Missing passlib and/or argon2. Please do:\npip install passlib argon2_cffi', file=sys.stderr)
2322
sys.exit(1)
@@ -39,7 +38,7 @@ def main(argv, cwd):
3938
raise RuntimeError(f"Keyfile {keyfile_path} already present. Please proceed manually")
4039
if os.path.exists(tokenfile_path):
4140
raise RuntimeError(f"Tokenfile {tokenfile_path} already present. Please proceed manually")
42-
if not(SUBJECT_RE.fullmatch(subject)):
41+
if not SUBJECT_RE.fullmatch(subject):
4342
raise RuntimeError(f"Subject name {subject!r} using disallowed characters")
4443
sanitized_subject = subject.replace('-', '_')
4544
print("Creating API key...")

0 commit comments

Comments
 (0)