File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1313import shutil
1414import subprocess
1515import sys
16- import tempfile
1716
1817try :
1918 from passlib .context import CryptContext
20- import argon2
19+ import argon2 # noqa:F401
2120except ImportError :
2221 print ('Missing passlib and/or argon2. Please do:\n pip 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..." )
You can’t perform that action at this time.
0 commit comments