2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

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

This commit is contained in:
Aditya Hase 2021-02-21 11:12:57 +05:30
parent 2df0bf726d
commit 5d90346660
No known key found for this signature in database
GPG Key ID: 0A55F0FCA0234972

View File

@ -11,7 +11,6 @@ import sys
# imports - third party imports
import click
from six.moves import reload_module
# imports - module imports
import bench
@ -364,6 +363,7 @@ def get_repo_dir(app, bench_path='.'):
def switch_branch(branch, apps=None, bench_path='.', upgrade=False, check_upgrade=True):
import git
from six.moves import reload_module
from bench.utils import update_requirements, update_node_packages, backup_all_sites, patch_sites, build_assets, post_upgrade
apps_dir = os.path.join(bench_path, 'apps')
version_upgrade = (False,)