]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Be exact about the number of spaces in the header.
authorcypherpunks <cypherpunks@torproject.org>
Fri, 6 Mar 2015 14:08:45 +0000 (15:08 +0100)
committerNick Mathewson <nickm@torproject.org>
Mon, 9 Mar 2015 13:00:40 +0000 (09:00 -0400)
Also fixes changes files that warn on this.

changes/bug14806
scripts/maint/lintChanges.py

index 3a2e355e8bd0dc2051db4e4e0fdf5c00ae930109..dd85e785ced4042482ae4c4037ae177ef873e87f 100644 (file)
@@ -1,3 +1,3 @@
-   o Minor bugfixes (testing):
-       - Commandline argument tests moved to Stem. Fixes bug 14806.
+  o Minor bugfixes (testing):
+    - Commandline argument tests moved to Stem. Fixes bug 14806.
 
index 19d03ec8da2a37d1525cfc8c1388c95d89f05cd5..c2fc01d2bf68968beb921404fd71c11eb510eae8 100755 (executable)
@@ -31,7 +31,7 @@ def lintfile(fname):
     lines = contents.split("\n")
     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")
 
     contents = " ".join(contents.split())