2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-27 11:43:29 +00:00

perf: Remove six.moves.urllib from the import tree

This commit is contained in:
Aditya Hase 2021-02-21 11:10:43 +05:30
parent c5d2fb9255
commit 6706b230da
No known key found for this signature in database
GPG Key ID: 0A55F0FCA0234972
3 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import json
import os
# imports - third party imports
from six.moves.urllib.parse import urlparse
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
def make_ports(bench_path):
from six.moves.urllib.parse import urlparse
benches_path = os.path.dirname(os.path.abspath(bench_path))
default_ports = {

View File

@ -5,7 +5,6 @@ import subprocess
# imports - third party imports
import semantic_version
from six.moves.urllib.parse import urlparse
# imports - module imports
import bench
@ -13,6 +12,8 @@ from bench.config.common_site_config import get_config
def generate_config(bench_path):
from six.moves.urllib.parse import urlparse
config = get_config(bench_path)
ports = {}

View File

@ -24,7 +24,6 @@ from distutils.spawn import find_executable
import click
from semantic_version import Version
from six import iteritems
from six.moves.urllib.parse import urlparse
# imports - module imports
import bench
@ -973,6 +972,7 @@ def find_benches(directory=None):
def migrate_env(python, backup=False):
from six.moves.urllib.parse import urlparse
from bench.config.common_site_config import get_config
from bench.app import get_apps