Commit 5f2db02d authored by Matt Selsky's avatar Matt Selsky Committed by Matt Selsky

PEP8 whitespace cleanup

Warnings fixed:
devel/linkcheck:73:1: E305 expected 2 blank lines after class or function definition, found 1
wafhelpers/waf.py:29:5: E306 expected 1 blank line before a nested definition, found 0
wafhelpers/pythonize-header:84:1: E305 expected 2 blank lines after class or function definition, found 1
tests/wscript:38:1: E101 indentation contains mixed spaces and tabs
tests/wscript:38:1: W191 indentation contains tabs
tests/wscript:38:3: E131 continuation line unaligned for hanging indent
tests/wscript:39:1: E101 indentation contains mixed spaces and tabs
wscript:913:1: E305 expected 2 blank lines after class or function definition, found 1
wscript:949:1: E305 expected 2 blank lines after class or function definition, found 1
contrib/ntpheatusb:130:1: E305 expected 2 blank lines after class or function definition, found 1
parent 35cde1fd
Pipeline #28689149 passed with stage
in 4 minutes and 50 seconds
......@@ -14,8 +14,8 @@ try:
with gzip.open(config_file_name, 'rb') as f:
file_content = f.read()
except:
print("ERROR: can not read your %s" % (config_file_name))
sys.exit(1)
print("ERROR: can not read your %s" % (config_file_name))
sys.exit(1)
tests = (
('CONFIG_CPU_FREQ_GOV_PERFORMANCE', 'For best performance'),
......
......@@ -97,10 +97,10 @@ Discrete PID control
return "D_value=%s, I_value=%s" % (self.D_value, self.I_value)
def setPoint(self, set_point):
"""
Initialize the setpoint of PID
"""
self.set_point = set_point
"""
Initialize the setpoint of PID
"""
self.set_point = set_point
def update(self, current_value):
"""
......@@ -116,9 +116,9 @@ Discrete PID control
self.Integrator = self.Integrator + self.error
if self.Integrator > self.Integrator_max:
self.Integrator = self.Integrator_max
self.Integrator = self.Integrator_max
elif self.Integrator < self.Integrator_min:
self.Integrator = self.Integrator_min
self.Integrator = self.Integrator_min
self.I_value = self.Integrator * self.Ki
......@@ -126,6 +126,7 @@ Discrete PID control
return PID
# Work with argvars
parser = argparse.ArgumentParser(description="make heat with USB relay")
parser.add_argument('-p', '--pid',
......
......@@ -70,6 +70,7 @@ def tabulate(path):
if m:
references[m.group(0)] = (iostack[-1][1].name, linecount)
if __name__ == '__main__':
iostack = []
references = {}
......
......@@ -35,7 +35,7 @@ def build(ctx):
libntp_source = [
"libntp/authkeys.c",
"libntp/ntp_calendar.c",
"libntp/ntp_endian.c",
"libntp/ntp_endian.c",
"libntp/ntp_random.c",
"libntp/clocktime.c",
"libntp/decodenetnum.c",
......
......@@ -81,6 +81,7 @@ def pythonize(rfp, wfp):
if not skipto:
wfp.write(line)
if __name__ == '__main__':
if len(sys.argv) == 1:
pythonize(sys.stdin, sys.stdout)
......
......@@ -26,6 +26,7 @@ def manpage_subst_fun(self, code):
# extract the vars foo into lst and replace @foo@ by %(foo)s
lst = []
def repl(match):
g = match.group
if g(1):
......
......@@ -909,6 +909,7 @@ def bin_test(ctx):
from wafhelpers.bin_test import cmd_bin_test
cmd_bin_test(ctx, config)
# Borrowed from https://www.rtems.org/
variant_cmd = (
("build", BuildContext),
......@@ -946,6 +947,7 @@ def init_handler(ctx):
pprint("YELLOW", "--- %sing %s ---" % (cmd, v))
obj.execute()
commands = (
("install", "init_handler", None),
("uninstall", "init_handler", None),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment