Permalink
Browse files

Must Thread.getName on Python 2.5

  • Loading branch information...
1 parent 8af6e58 commit 5a7a141032b0bfaeeb9a958633b9774dc41a6f45 @ask committed Jun 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 celery/apps/worker.py
View
3 celery/apps/worker.py
@@ -33,8 +33,9 @@
def active_thread_count():
from threading import enumerate
+ # must use .getName on Python 2.5
return sum(1 for t in enumerate()
- if not t.name.startswith("Dummy-"))
+ if not t.getName().startswith("Dummy-"))
def safe_say(msg):

0 comments on commit 5a7a141

Please sign in to comment.