Unused imports

This commit is contained in:
Alexandre Aubin 2023-12-27 03:22:30 +01:00
parent 665592374d
commit 0856f27b46
2 changed files with 1 additions and 3 deletions

View file

@ -21,7 +21,6 @@ import re
import pwd
import grp
import random
import string
import subprocess
import copy
from logging import getLogger

View file

@ -21,7 +21,6 @@ import os
import string
import subprocess
import yaml
import passlib.hash
SMALL_PWD_LIST = [
"yunohost",
@ -73,7 +72,7 @@ def assert_password_is_strong_enough(profile, password):
def _hash_user_password(password):
import passlib
import passlib.hash
# passlib will returns something like:
# $6$rounds=656000$AwCIMolbTAyQhtev$46UvYfVgs.k0Bt6fLTekBHyCcCFkix/NNfgAWiICX.9YUPVYZ3PsIAwY99yP5/tXhg2sYBaAhKj6W3kuYWaR3.
# cf https://passlib.readthedocs.io/en/stable/modular_crypt_format.html#modular-crypt-format