From a5e9a811489d60697eb886437103c333438fff78 Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Mon, 7 Nov 2022 20:21:27 +0100 Subject: Parenthesis in if statement - blasphemy! --- screenplain/richstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenplain/richstring.py b/screenplain/richstring.py index 3890ecd..8a11fec 100644 --- a/screenplain/richstring.py +++ b/screenplain/richstring.py @@ -292,7 +292,7 @@ def parse_emphasis(source): pos = 0 def append(pos, end): - if(pos == end): + if pos == end: return text = source[pos:end] segments.append(Segment(text, styles)) -- cgit