mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Clean unused code/imports
This commit is contained in:
parent
0dde1f6d4f
commit
d7891970c3
1 changed files with 1 additions and 17 deletions
|
@ -35,14 +35,13 @@ import subprocess
|
||||||
import glob
|
import glob
|
||||||
import urllib
|
import urllib
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
from moulinette import msignals, m18n, msettings
|
from moulinette import msignals, m18n, msettings
|
||||||
from moulinette.utils.log import getActionLogger
|
from moulinette.utils.log import getActionLogger
|
||||||
from moulinette.utils.network import download_json
|
from moulinette.utils.network import download_json
|
||||||
from moulinette.utils.filesystem import read_file, read_json, read_toml, read_yaml, write_to_file, write_to_json, write_to_yaml, chmod, chown, mkdir
|
from moulinette.utils.filesystem import read_file, read_json, read_toml, read_yaml, write_to_file, write_to_json, write_to_yaml, chmod, chown, mkdir
|
||||||
|
|
||||||
from yunohost.service import service_log, service_status, _run_service_command
|
from yunohost.service import service_status, _run_service_command
|
||||||
from yunohost.utils import packages
|
from yunohost.utils import packages
|
||||||
from yunohost.utils.error import YunohostError
|
from yunohost.utils.error import YunohostError
|
||||||
from yunohost.log import is_unit_operation, OperationLogger
|
from yunohost.log import is_unit_operation, OperationLogger
|
||||||
|
@ -2797,21 +2796,6 @@ def is_true(arg):
|
||||||
return True if arg else False
|
return True if arg else False
|
||||||
|
|
||||||
|
|
||||||
def random_password(length=8):
|
|
||||||
"""
|
|
||||||
Generate a random string
|
|
||||||
|
|
||||||
Keyword arguments:
|
|
||||||
length -- The string length to generate
|
|
||||||
|
|
||||||
"""
|
|
||||||
import string
|
|
||||||
import random
|
|
||||||
|
|
||||||
char_set = string.ascii_uppercase + string.digits + string.ascii_lowercase
|
|
||||||
return ''.join([random.SystemRandom().choice(char_set) for x in range(length)])
|
|
||||||
|
|
||||||
|
|
||||||
def unstable_apps():
|
def unstable_apps():
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue