From 2ec12f177526d7d8ab9b2e5584427a91170f7d99 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 21 Nov 2011 17:12:47 +0100 Subject: [PATCH] Fix bugje. --- rq/queue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rq/queue.py b/rq/queue.py index 6dc6633..d573eed 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -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 '' % ( self.func.__name__, ', '.join(arg_list))