plutopluto

git clone https://git.ce9e.org/plutopluto.git

commit
58637e82889bf9c9a6785a6b95aef76154ac50ab
parent
ade891e611cf65a96edc1576f88ea69527269b4c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-21 13:53
fix parsing config with comment at the end of line

Diffstat

M plutopluto/__init__.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/plutopluto/__init__.py b/plutopluto/__init__.py

@@ -182,8 +182,8 @@ def parse_config(path):
  182   182     urls = []
  183   183     with open(path) as fh:
  184   184         for line in fh:
  185    -1             url = line.strip()
  186    -1             if url and not url.startswith('#'):
   -1   185             url = line.split('#', 1)[0].strip()
   -1   186             if url:
  187   187                 urls.append(url)
  188   188     return urls
  189   189