mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix coding style issues in the changes file linter
Found using flake8 which gave the following output; lintChanges.py:10:13: E225 missing whitespace around operator lintChanges.py:25:1: E302 expected 2 blank lines, found 1 lintChanges.py:46:5: F841 local variable 'lines' is assigned to but never used lintChanges.py:52:32: E228 missing whitespace around modulo operator lintChanges.py:53:11: E201 whitespace after '(' lintChanges.py:56:41: E228 missing whitespace around modulo operator Part of ticket 21096.
This commit is contained in:
parent
730cc16b72
commit
fa0792c3a8
@ -22,6 +22,7 @@ KNOWN_GROUPS=set([
|
||||
"Code simplification and refactoring",
|
||||
"Removed features"])
|
||||
|
||||
|
||||
def lintfile(fname):
|
||||
have_warned = []
|
||||
|
||||
@ -43,8 +44,6 @@ def lintfile(fname):
|
||||
if bugnum and bugnum not in contents:
|
||||
warn("bug number {} does not appear".format(bugnum))
|
||||
|
||||
lines = contents.split("\n")
|
||||
|
||||
m = re.match(r'^[ ]{2}o ([^\(:]*)([^:]*):', contents)
|
||||
if not m:
|
||||
warn("header not in format expected")
|
||||
|
Loading…
Reference in New Issue
Block a user