mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 17:12:39 +00:00
PEP8 double aggressive E20 and E211
Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 9c8810de37d10573c4220111a2694f73a2260106) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
e8c50177ef
commit
4099668975
@ -312,10 +312,10 @@ def follow_rule(i, line):
|
|||||||
# if the line still does not respect the rule
|
# if the line still does not respect the rule
|
||||||
if not rules[i][0](line):
|
if not rules[i][0](line):
|
||||||
# this is a rule disgression
|
# this is a rule disgression
|
||||||
print ("## Disgression: ", rules[i][2], " in: '", oldline, "'")
|
print("## Disgression: ", rules[i][2], " in: '", oldline, "'")
|
||||||
else:
|
else:
|
||||||
# just remind user about his/her errors
|
# just remind user about his/her errors
|
||||||
print ("## Reminder: ", rules[i][2], " in : '", oldline, "'")
|
print("## Reminder: ", rules[i][2], " in : '", oldline, "'")
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
|
||||||
@ -389,7 +389,7 @@ if __name__ == "__main__":
|
|||||||
line = follow_rule(5, line)
|
line = follow_rule(5, line)
|
||||||
if var == "":
|
if var == "":
|
||||||
if not in_routine:
|
if not in_routine:
|
||||||
print ("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n'))
|
print("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n'))
|
||||||
var = 'others'
|
var = 'others'
|
||||||
for c in commentBloc:
|
for c in commentBloc:
|
||||||
seen_vars[var].append(c)
|
seen_vars[var].append(c)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user