mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 22:53:44 +01:00
Be exact about the number of spaces in the header.
Also fixes changes files that warn on this.
This commit is contained in:
parent
9dc90a5b7b
commit
034f51dd02
@ -1,3 +1,3 @@
|
|||||||
o Minor bugfixes (testing):
|
o Minor bugfixes (testing):
|
||||||
- Commandline argument tests moved to Stem. Fixes bug 14806.
|
- Commandline argument tests moved to Stem. Fixes bug 14806.
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ def lintfile(fname):
|
|||||||
lines = contents.split("\n")
|
lines = contents.split("\n")
|
||||||
isBug = ("bug" in lines[0] or "fix" in lines[0])
|
isBug = ("bug" in lines[0] or "fix" in lines[0])
|
||||||
|
|
||||||
if not re.match(r'^ +o (.*)', contents):
|
if not re.match(r'^[ ]{2}o (.*)', contents):
|
||||||
warn("header not in format expected")
|
warn("header not in format expected")
|
||||||
|
|
||||||
contents = " ".join(contents.split())
|
contents = " ".join(contents.split())
|
||||||
|
Loading…
Reference in New Issue
Block a user