summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpttbbs/util/pyutil/pttpost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/util/pyutil/pttpost.py b/pttbbs/util/pyutil/pttpost.py
index 04ae0a64..ebd6dc24 100755
--- a/pttbbs/util/pyutil/pttpost.py
+++ b/pttbbs/util/pyutil/pttpost.py
@@ -35,7 +35,7 @@ CommentsFormatRe = (
# format: "※ " ANSI_COLOR(1;32) "%s" ANSI_COLOR(0;32) ":轉錄至" %s
def IsCrossPostLog(buf):
return (buf.startswith("※ " + ANSI_COLOR(1,32)) and
- buf.index(ANSI_COLOR(0,32) + ':轉錄至' > 0))
+ buf.index(ANSI_COLOR(0,32) + ':轉錄至') > 0)
def ParseComment(buf):
"""Parses a buffer for known comment formats.