Skip to content

Commit

Permalink
flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Apr 22, 2015
1 parent 4381ba5 commit 2abc5de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions celery/app/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,10 @@ def apply_async(self, args=None, kwargs=None, task_id=None, producer=None,
attribute. Trailing can also be disabled by default using the
:attr:`trail` attribute
:keyword publisher: Deprecated alias to ``producer``.
:rtype :class:`celery.result.AsyncResult`: if
:setting:`CELERY_ALWAYS_EAGER` is not set, otherwise
:class:`celery.result.EagerResult`:
:rtype :class:`celery.result.AsyncResult`: if
:setting:`CELERY_ALWAYS_EAGER` is not set, otherwise
:class:`celery.result.EagerResult`.
Also supports all keyword arguments supported by
:meth:`kombu.Producer.publish`.
Expand Down
6 changes: 1 addition & 5 deletions celery/bin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,7 @@ def parse_preload_options(self, args):
return self.preparse_options(args, self.preload_options)

def add_append_opt(self, acc, opt, value):
default = opt.default or []

if opt.dest not in acc:
acc[opt.dest] = default

acc.setdefault(opt.dest, opt.default or [])
acc[opt.dest].append(value)

def preparse_options(self, args, options):
Expand Down
2 changes: 1 addition & 1 deletion celery/tests/fixups/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test__close_database(self):
conns[1].close.side_effect = KeyError('already closed')
f.database_errors = (KeyError, )

f._db.connections = Mock() # ConnectionHandler
f._db.connections = Mock() # ConnectionHandler
f._db.connections.all.side_effect = lambda: conns

f._close_database()
Expand Down

0 comments on commit 2abc5de

Please sign in to comment.