Mercurial > kallithea
changeset 3626:0a1417ef1a9c beta
celery tasks: use None as special value
Use a more common pattern.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Mar 2013 01:10:45 +0100 |
parents | 260a7a01b054 |
children | 32cb8d45f330 |
files | rhodecode/lib/celerylib/tasks.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/celerylib/tasks.py Thu Mar 28 01:10:45 2013 +0100 +++ b/rhodecode/lib/celerylib/tasks.py Thu Mar 28 01:10:45 2013 +0100 @@ -160,9 +160,9 @@ co_day_auth_aggr[akc(cs.author)]['data']] time_pos = l.index(k) except ValueError: - time_pos = False + time_pos = None - if time_pos >= 0 and time_pos is not False: + if time_pos >= 0 and time_pos is not None: datadict = \ co_day_auth_aggr[akc(cs.author)]['data'][time_pos]