mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Tidy up unused imports & other minor coding style adjustments
This commit is contained in:
parent
086d176c28
commit
3c8d8b3465
6 changed files with 2 additions and 7 deletions
|
@ -230,6 +230,7 @@ class RequiredParameter(_ExtraParameter):
|
|||
% value)
|
||||
return value
|
||||
|
||||
|
||||
"""
|
||||
The list of available extra parameters classes. It will keep to this list
|
||||
order on argument parsing.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import re
|
||||
import os
|
||||
import errno
|
||||
import logging
|
||||
import argparse
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import re
|
||||
import errno
|
||||
import logging
|
||||
|
|
|
@ -7,7 +7,6 @@ import grp
|
|||
from pwd import getpwnam
|
||||
|
||||
from moulinette import m18n
|
||||
from moulinette.globals import CACHE_DIR
|
||||
from moulinette.core import MoulinetteError
|
||||
|
||||
# Files & directories --------------------------------------------------
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
import logging
|
||||
|
||||
# import all constant because other modules tries to important them from this
|
||||
# import all constants because other modules try to import them from this
|
||||
# module because SUCCESS is defined in this module
|
||||
from logging import (addLevelName, setLoggerClass, Logger, getLogger, NOTSET,
|
||||
DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
import errno
|
||||
import time
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
from moulinette.core import MoulinetteError
|
||||
|
||||
# This import is unused in this file. It will be deleted in future (W0611 PEP8),
|
||||
# but for the momment we keep it due to yunohost moulinette script that used
|
||||
# process.quote syntax to access this module !
|
||||
|
|
Loading…
Reference in a new issue