fix syntax error
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 25 Aug 2023 18:57:17 +0000 (19:57 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 25 Aug 2023 18:57:17 +0000 (19:57 +0100)
src/budget_sync/main.py

index a1e7c7275411d05db3f743644ffd67ec9cdd9e8a..e4a73593b48589176aae08ad1f9710a77dee034c 100644 (file)
@@ -231,7 +231,7 @@ def json_milestones(budget_graph: BudgetGraph, add_comments: bool,
                     # has only the "summary description" but the rest may
                     # be used for "TODO" lists
                     l = line.strip()
-                    if len(l) >= 2 and l == "-" * len(l) \
+                    if len(l) >= 2 and l == "-" * len(l):
                         lines[i:] = []
                         break
                 comment += "\n".join(lines)