Mercurial > hg
view tests/unwrap-message-id.py @ 50772:1680ef94ad2b stable
repoview: fix the filter created by `extrafilter`
The `name` variable was updated in each interaction of the loop, making all new
filters inheriting from the same base (the last one iterated), leading to
terrible terrible misbehavior.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 12 Jul 2023 12:47:08 +0200 |
parents | 6000f5b25c9b |
children |
line wrap: on
line source
import sys for line in sys.stdin: if line.lower() in ("message-id: \n", "in-reply-to: \n"): line = line[:-2] print(line, end="")