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

style: clearer import paths

This commit is contained in:
Gavin D'souza 2020-03-11 12:11:47 +05:30
parent 3d3b3721f0
commit 8fb831d870
2 changed files with 13 additions and 11 deletions

View File

@ -60,10 +60,7 @@ def write_appstxt(apps, bench_path='.'):
return f.write('\n'.join(apps))
def check_url(url, raise_err=True):
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
from six.moves.urllib.parse import urlparse
parsed = urlparse(url)
if not parsed.scheme:

View File

@ -1,11 +1,16 @@
from .common_site_config import get_config
import re, os, subprocess, semantic_version
import bench
# imports - standard imports
import os
import re
import subprocess
# imports - third party imports
import semantic_version
from six.moves.urllib.parse import urlparse
# imports - module imports
import bench
from bench.config.common_site_config import get_config
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
def generate_config(bench_path):
config = get_config(bench_path)