Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Must Thread.getName on Python 2.5

  • Loading branch information...
commit 5a7a141032b0bfaeeb9a958633b9774dc41a6f45 1 parent 8af6e58
@ask authored
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):
Please sign in to comment.
Something went wrong with that request. Please try again.