Fix bug where workers would not execute builtin functions properly.

This commit is contained in:
Vincent Driessen 2013-02-26 11:42:39 +01:00
parent d5f1740c3d
commit 66741fff7b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
### 0.3.7
(February 26th, 2013)
- Fixed bug where workers would not execute builtin functions properly.
### 0.3.6
(February 18th, 2013)

View File

@ -78,7 +78,7 @@ class Job(object):
if inspect.ismethod(func):
job._instance = func.im_self
job._func_name = func.__name__
elif inspect.isfunction(func):
elif inspect.isfunction(func) or inspect.isbuiltin(func):
job._func_name = '%s.%s' % (func.__module__, func.__name__)
else: # we expect a string
job._func_name = func