From 3b91d98d856b57aec3bb3c38eb8b09aa11d96ccc Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 31 Dec 2019 14:08:37 +0530 Subject: [PATCH] fix: compatibility fixes, better cpu utilization --- bench/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/utils.py b/bench/utils.py index 5ba3b7ba..4f046449 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -69,7 +69,7 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False, try: os.makedirs(os.path.join(path, dirname)) except OSError as e: - if e.errno == os.errno.EEXIST: + if e.errno == errno.EEXIST: pass setup_logging() @@ -716,7 +716,7 @@ def update_translations_p(args): print('Download failed for', args[0], args[1]) def download_translations_p(): - pool = multiprocessing.Pool(4) + pool = multiprocessing.Pool(multiprocessing.cpu_count()) langs = get_langs() apps = ('frappe', 'erpnext')