mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
style: clearer import paths
This commit is contained in:
parent
3d3b3721f0
commit
8fb831d870
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user