Skip to content

Commit

Permalink
Merge pull request #395 from methane/patch-1
Browse files Browse the repository at this point in the history
Easy refactoring on decorators.py
  • Loading branch information
selwin committed Aug 6, 2014
2 parents 7ea076e + 4fb2914 commit 2409e81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rq/decorators.py
Expand Up @@ -36,10 +36,7 @@ def delay(*args, **kwargs):
queue = Queue(name=self.queue, connection=self.connection)
else:
queue = self.queue
if 'depends_on' in kwargs:
depends_on = kwargs.pop('depends_on')
else:
depends_on = None
depends_on = kwargs.pop('depends_on', None)
return queue.enqueue_call(f, args=args, kwargs=kwargs,
timeout=self.timeout, result_ttl=self.result_ttl, depends_on=depends_on)
f.delay = delay
Expand Down

0 comments on commit 2409e81

Please sign in to comment.