mirror of
https://github.com/vale981/jobmanager
synced 2025-03-06 02:11:39 -05:00
minor change
This commit is contained in:
parent
b858de51a3
commit
5a4a3c0798
1 changed files with 2 additions and 1 deletions
|
@ -85,6 +85,7 @@ class ProgressBar(object):
|
|||
automatically creates the necessary `multiprocessing.Value`
|
||||
objects.
|
||||
"""
|
||||
self.__name__ = func.__name__ # act like the function
|
||||
self.func = func
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
|
@ -97,7 +98,7 @@ class ProgressBar(object):
|
|||
"The wrapped function `{}` ".format(func.func_name)+
|
||||
"must accept one of the folling pairs of "+
|
||||
"keyword arguments:{}".format(validCountKwargs))
|
||||
|
||||
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
""" Calls `func` - previously defined in `__init__`.
|
||||
|
|
Loading…
Add table
Reference in a new issue