3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 23:54:08 +01:00

exec.threadinfo: use case-insensitive sort

This commit is contained in:
James Lu 2017-08-08 00:30:47 -07:00
parent 486a225156
commit 17ba9be238

View File

@ -180,8 +180,7 @@ def threadinfo(irc, source, args):
Lists all threads currently present in this PyLink instance."""
permissions.check_permissions(irc, source, ['exec.threadinfo'])
for t in sorted(threading.enumerate(), key=lambda t: t.name):
for t in sorted(threading.enumerate(), key=lambda t: t.name.lower()):
name = t.name
# Unnamed threads are something we want to avoid throughout PyLink.
if name.startswith('Thread-'):