From e03aaa75421c0266884f8e53f8229b91485e487d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 2 Dec 2014 10:23:10 +0100 Subject: [PATCH] Patch for an Issue #982 --- lib/utils/hash.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 4e42bb769..709bcd281 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -19,7 +19,11 @@ try: except (ImportError, OSError): pass else: - _multiprocessing = multiprocessing + try: + if multiprocessing.cpu_count() > 1: + _multiprocessing = multiprocessing + except NotImplementedError: + pass import gc import os