From 7a5f7d470fb219dd7ed4b34ad3e690abccb38870 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 10 Dec 2020 13:43:57 +1000 Subject: [PATCH] Remove unneeded semicolons from Python files --- tools/discover.py | 4 ++-- tools/flash_writer.py | 2 +- tools/ocdconsole.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/discover.py b/tools/discover.py index 3cff6ed736..0898a3a202 100755 --- a/tools/discover.py +++ b/tools/discover.py @@ -60,7 +60,7 @@ def send_discover(socket): cmd[2] = DISCOVER_ALL chksum = 0 for c in cmd[:3]: - chksum -= c; + chksum -= c cmd[3] = chksum & 0xff socket.sendto(cmd, ('', PORT)) @@ -90,7 +90,7 @@ if __name__ == '__main__': s = socket(AF_INET, SOCK_DGRAM) s.bind(('0.0.0.0', PORT)) s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) - s.settimeout(1.0); + s.settimeout(1.0) send_discover(s) devices = read_responses(s) socket.close(s) diff --git a/tools/flash_writer.py b/tools/flash_writer.py index 01469084ae..aa071a66b3 100755 --- a/tools/flash_writer.py +++ b/tools/flash_writer.py @@ -216,7 +216,7 @@ class TelnetDev: def __init__(self): srv_ipaddr = ConfigArgs.SERVER_IP srv_port = ConfigArgs.SERVER_PORT - self.recvbuf = b''; + self.recvbuf = b'' try: self.telnet = telnetlib.Telnet(host=srv_ipaddr, port=srv_port, timeout=10) # There is a ack to be sent after connecting to the telnet server. diff --git a/tools/ocdconsole.py b/tools/ocdconsole.py index b1a536bda8..6397162677 100755 --- a/tools/ocdconsole.py +++ b/tools/ocdconsole.py @@ -252,7 +252,7 @@ if __name__ == "__main__": downwordaddr=0 while (downwordaddr=length):