Skip to content

Commit

Permalink
avoid 'none' values warnings
Browse files Browse the repository at this point in the history
by the time we need to filter them out, they have had a prefix added (ie: 'enc_' or 'dec_')
  • Loading branch information
totaam committed Sep 7, 2024
1 parent 309a7c6 commit 8eed394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpra/codecs/video_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ def apl(l):
inclist = apl(all_fn())
lists = exclist + inclist
all_list = apl(all_list)
unknown = tuple(x for x in lists if ap(x) not in CODEC_TO_MODULE and x.lower()!="none")
unknown = tuple(x for x in lists if ap(x) not in CODEC_TO_MODULE and not x.lower().endswith("none"))
if unknown:
log.warn(f"Warning: ignoring unknown {name}: "+csv(unknown))
notfound = tuple(x for x in lists if (x and ap(x) not in all_list and x not in unknown and x!="none"))
notfound = tuple(x for x in lists if (x and ap(x) not in all_list and x not in unknown and not x.endswith("none")))
if notfound:
log.warn(f"Warning: {name} not found: "+csv(notfound))
r = apl(x for x in inclist if x not in exclist and x!="none")
r = apl(x for x in inclist if x not in exclist and not x.endswith("none"))
#log("filt%s=%s", (prefix, name, inlist, all_fn, all_list), r)
return r

Expand Down

0 comments on commit 8eed394

Please sign in to comment.