Commit 84227fbf authored by Ell's avatar Ell

tools: in, fix "function()" predicate ...

... when not specifying a thread-ID
parent c7f17307
......@@ -727,11 +727,12 @@ class FindSamplesPopover (Gtk.Popover):
for i in range (len (samples)):
def match_thread (thread, id, state = None):
return (type (id) == int and \
return (id is None or \
(type (id) == int and \
id == or \
(type (id) == str and \ and \
re.fullmatch (id, and \
re.fullmatch (id, and \
(state is None or \
re.fullmatch (state, str (thread.state)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment