Merge pull request #104 from stevschmid/patch-1

Fix crash when module is missing
This commit is contained in:
Samuel 2013-10-24 04:22:44 -07:00
commit b4e0b534d5
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ for mod, msg in [('numpy', 'HyBi protocol will be slower'),
globals()[mod] = __import__(mod)
except ImportError:
globals()[mod] = None
self.msg("WARNING: no '%s' module, %s", mod, msg)
print("WARNING: no '%s' module, %s" % (mod, msg))
if multiprocessing and sys.platform == 'win32':
# make sockets pickle-able/inheritable
import multiprocessing.reduction