mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
perf: Remove six.moves.urllib from the import tree
This commit is contained in:
parent
c5d2fb9255
commit
6706b230da
@ -4,7 +4,6 @@ import json
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# imports - third party imports
|
# imports - third party imports
|
||||||
from six.moves.urllib.parse import urlparse
|
|
||||||
|
|
||||||
|
|
||||||
default_config = {
|
default_config = {
|
||||||
@ -74,6 +73,8 @@ def update_config_for_frappe(config, bench_path):
|
|||||||
# TODO Optionally we need to add the host or domain name in case dns_multitenant is false
|
# TODO Optionally we need to add the host or domain name in case dns_multitenant is false
|
||||||
|
|
||||||
def make_ports(bench_path):
|
def make_ports(bench_path):
|
||||||
|
from six.moves.urllib.parse import urlparse
|
||||||
|
|
||||||
benches_path = os.path.dirname(os.path.abspath(bench_path))
|
benches_path = os.path.dirname(os.path.abspath(bench_path))
|
||||||
|
|
||||||
default_ports = {
|
default_ports = {
|
||||||
|
@ -5,7 +5,6 @@ import subprocess
|
|||||||
|
|
||||||
# imports - third party imports
|
# imports - third party imports
|
||||||
import semantic_version
|
import semantic_version
|
||||||
from six.moves.urllib.parse import urlparse
|
|
||||||
|
|
||||||
# imports - module imports
|
# imports - module imports
|
||||||
import bench
|
import bench
|
||||||
@ -13,6 +12,8 @@ from bench.config.common_site_config import get_config
|
|||||||
|
|
||||||
|
|
||||||
def generate_config(bench_path):
|
def generate_config(bench_path):
|
||||||
|
from six.moves.urllib.parse import urlparse
|
||||||
|
|
||||||
config = get_config(bench_path)
|
config = get_config(bench_path)
|
||||||
|
|
||||||
ports = {}
|
ports = {}
|
||||||
|
@ -24,7 +24,6 @@ from distutils.spawn import find_executable
|
|||||||
import click
|
import click
|
||||||
from semantic_version import Version
|
from semantic_version import Version
|
||||||
from six import iteritems
|
from six import iteritems
|
||||||
from six.moves.urllib.parse import urlparse
|
|
||||||
|
|
||||||
# imports - module imports
|
# imports - module imports
|
||||||
import bench
|
import bench
|
||||||
@ -973,6 +972,7 @@ def find_benches(directory=None):
|
|||||||
|
|
||||||
|
|
||||||
def migrate_env(python, backup=False):
|
def migrate_env(python, backup=False):
|
||||||
|
from six.moves.urllib.parse import urlparse
|
||||||
from bench.config.common_site_config import get_config
|
from bench.config.common_site_config import get_config
|
||||||
from bench.app import get_apps
|
from bench.app import get_apps
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user