mirror of
https://github.com/frappe/bench.git
synced 2024-11-16 01:57:08 +00:00
perf: Remove ast from the import tree
This commit is contained in:
parent
2a4377ac6f
commit
104efd349b
@ -1,5 +1,4 @@
|
||||
# imports - standard imports
|
||||
import ast
|
||||
|
||||
# imports - module imports
|
||||
from bench.config.common_site_config import update_config, get_config, put_config
|
||||
@ -52,6 +51,8 @@ def config_http_timeout(seconds):
|
||||
@click.command('set-common-config', help='Set value in common config')
|
||||
@click.option('configs', '-c', '--config', multiple=True, type=(str, str))
|
||||
def set_common_config(configs):
|
||||
import ast
|
||||
|
||||
common_site_config = {}
|
||||
for key, value in configs:
|
||||
if value in ('true', 'false'):
|
||||
|
Loading…
Reference in New Issue
Block a user