Skip to content

Commit

Permalink
don't show a warning when parsing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 7, 2023
1 parent e0df5f3 commit e2d2565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/util/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e2d2565

Please sign in to comment.