Fix bugje.

This commit is contained in:
Vincent Driessen 2011-11-21 17:12:47 +01:00
parent 1358246238
commit 2ec12f1775
1 changed files with 3 additions and 2 deletions

View File

@ -57,8 +57,9 @@ class Job(object):
return self.func(*self.args, **self.kwargs)
def __str__(self):
arg_list = map(repr, self.args)
arg_list += map(lambda key, val: '%s=%r' % (key, val), self.kwargs.items())
arg_list = map(repr, self.args) + \
map(lambda tup: '%s=%r' % (tup[0], tup[1]),
self.kwargs.items())
return '<Job %s(%s)>' % (
self.func.__name__,
', '.join(arg_list))