Skip to content

Commit

Permalink
fix(utils): sort imports, add parenthesis on ambigupus expr
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Jan 15, 2020
1 parent 1b0008d commit c64a7e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bench/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, sys, shutil, subprocess, logging, itertools, requests, json, platform, select, pwd, grp, multiprocessing, hashlib, glob
import os, sys, shutil, subprocess, logging, itertools, requests, json, platform, select, pwd, grp, multiprocessing, hashlib, glob, errno
from distutils.spawn import find_executable
import bench
import semantic_version
Expand Down Expand Up @@ -42,7 +42,7 @@ def log(message, level=0):
2: color.red + 'ERROR', # fail
3: color.yellow + 'WARN' # warn/suggest
}
start = levels.get(level) + ': ' if level in levels else ''
start = (levels.get(level) + ': ') if level in levels else ''
end = '\033[0m'

print(start + message + end)
Expand All @@ -68,7 +68,6 @@ def get_env_cmd(cmd, bench_path='.'):
def init(path, apps_path=None, no_procfile=False, no_backups=False, no_auto_update=False,
frappe_path=None, frappe_branch=None, wheel_cache_dir=None, verbose=False, clone_from=None,
skip_redis_config_generation=False, clone_without_update=False, ignore_exist = False, skip_assets=False, python='python3'):
import os, errno
from bench.app import get_app, install_apps_from_path
from bench.config import redis
from bench.config.common_site_config import make_config
Expand Down

0 comments on commit c64a7e9

Please sign in to comment.