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:
parent
486a225156
commit
17ba9be238
@ -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-'):
|
||||
|
Loading…
Reference in New Issue
Block a user