From e2d25655b41d140e94867ae2a7185689460ab9e6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 7 Dec 2023 17:19:02 +0700 Subject: [PATCH] don't show a warning when parsing comments --- xpra/util/parsing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpra/util/parsing.py b/xpra/util/parsing.py index c9c781d1ec..c6510d83da 100644 --- a/xpra/util/parsing.py +++ b/xpra/util/parsing.py @@ -149,6 +149,8 @@ def parse_simple_dict(s: str = "", sep: str = ",") -> dict[str, str | list[str]] for el in s.split(sep): if not el: continue + if el.startswith("#") and el.find("=")<0: + continue try: k, v = el.split("=", 1) k = k.strip()