diff options
author | persianpros <persianpros@yahoo.com> | 2021-04-13 23:18:03 +0430 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-04-15 09:28:44 -0700 |
commit | 9c8810de37d10573c4220111a2694f73a2260106 (patch) | |
tree | 18c5a680e76ab235e568ce73a91875730fb936c4 /contrib | |
parent | fa4f448fbedfe7b78c69821a0ef5da24002932cc (diff) | |
download | meta-openembedded-9c8810de37d10573c4220111a2694f73a2260106.tar.gz |
PEP8 double aggressive E20 and E211
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/oe-stylize.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/oe-stylize.py b/contrib/oe-stylize.py index 6f2b96c38..795879705 100755 --- a/contrib/oe-stylize.py +++ b/contrib/oe-stylize.py | |||
@@ -312,10 +312,10 @@ def follow_rule(i, line): | |||
312 | # if the line still does not respect the rule | 312 | # if the line still does not respect the rule |
313 | if not rules[i][0](line): | 313 | if not rules[i][0](line): |
314 | # this is a rule disgression | 314 | # this is a rule disgression |
315 | print ("## Disgression: ", rules[i][2], " in: '", oldline, "'") | 315 | print("## Disgression: ", rules[i][2], " in: '", oldline, "'") |
316 | else: | 316 | else: |
317 | # just remind user about his/her errors | 317 | # just remind user about his/her errors |
318 | print ("## Reminder: ", rules[i][2], " in : '", oldline, "'") | 318 | print("## Reminder: ", rules[i][2], " in : '", oldline, "'") |
319 | return line | 319 | return line |
320 | 320 | ||
321 | 321 | ||
@@ -389,7 +389,7 @@ if __name__ == "__main__": | |||
389 | line = follow_rule(5, line) | 389 | line = follow_rule(5, line) |
390 | if var == "": | 390 | if var == "": |
391 | if not in_routine: | 391 | if not in_routine: |
392 | print ("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n')) | 392 | print("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n')) |
393 | var = 'others' | 393 | var = 'others' |
394 | for c in commentBloc: | 394 | for c in commentBloc: |
395 | seen_vars[var].append(c) | 395 | seen_vars[var].append(c) |