Skip to content

Commit

Permalink
flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Mar 6, 2013
1 parent 7fd158b commit f9f2081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions celery/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

try:
from billiard import forking as _forking
except ImportError:
_forking = None
except ImportError: # pragma: no cover
_forking = None # noqa
from billiard.util import register_after_fork
from kombu.clocks import LamportClock
from kombu.utils import cached_property
Expand Down
3 changes: 2 additions & 1 deletion celery/worker/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ def on_task_received(body, message):

# fire any ready timers, this also returns
# the number of seconds until we need to fire timers again.
poll_timeout = fire_timers(propagate=errors) if scheduled else 1
poll_timeout = (fire_timers(propagate=errors) if scheduled
else 1)

# We only update QoS when there is no more messages to read.
# This groups together qos calls, and makes sure that remote
Expand Down

0 comments on commit f9f2081

Please sign in to comment.