fix: remove some unused imports
This commit is contained in:
parent
21311b17e2
commit
10a21f8cc3
1 changed files with 2 additions and 7 deletions
|
@ -28,11 +28,8 @@ import importlib
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import datetime
|
|
||||||
import configparser
|
|
||||||
import warnings
|
import warnings
|
||||||
import logging
|
import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
from wuttjamaican.conf import (WuttaConfig, WuttaConfigExtension,
|
from wuttjamaican.conf import (WuttaConfig, WuttaConfigExtension,
|
||||||
make_config as wutta_make_config,
|
make_config as wutta_make_config,
|
||||||
|
@ -40,9 +37,7 @@ from wuttjamaican.conf import (WuttaConfig, WuttaConfigExtension,
|
||||||
from wuttjamaican.util import (parse_bool as wutta_parse_bool,
|
from wuttjamaican.util import (parse_bool as wutta_parse_bool,
|
||||||
parse_list as wutta_parse_list)
|
parse_list as wutta_parse_list)
|
||||||
|
|
||||||
from rattail.util import load_entry_points, load_object
|
|
||||||
from rattail.exceptions import WindowsExtensionsNotInstalled, ConfigurationError
|
from rattail.exceptions import WindowsExtensionsNotInstalled, ConfigurationError
|
||||||
from rattail.files import temp_path
|
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@ -799,10 +794,10 @@ class ConfigProfile(object):
|
||||||
|
|
||||||
if function:
|
if function:
|
||||||
action.spec = function
|
action.spec = function
|
||||||
action.action = load_object(action.spec)
|
action.action = self.app.load_object(action.spec)
|
||||||
elif class_:
|
elif class_:
|
||||||
action.spec = class_
|
action.spec = class_
|
||||||
action.action = load_object(action.spec)(self.config)
|
action.action = self.app.load_object(action.spec)(self.config)
|
||||||
elif cmd:
|
elif cmd:
|
||||||
action.spec = cmd
|
action.spec = cmd
|
||||||
action.action = CommandAction(self.config, cmd)
|
action.action = CommandAction(self.config, cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue