2
0
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:
Aditya Hase 2021-02-21 10:02:20 +05:30
parent 2a4377ac6f
commit 104efd349b
No known key found for this signature in database
GPG Key ID: 0A55F0FCA0234972

View File

@ -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'):