Compatibility with the latest flake8 (#2373)

Require flake8 at least 3.0.0 and just call main()
This commit is contained in:
Alexander Kukushkin
2022-08-01 12:25:04 +02:00
committed by GitHub
parent ead798d9ac
commit d8d634125c
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ def mock_ioctl(fd, op, arg=None, mutate_flag=False):
sys.stderr.write("Ioctl %d %d %r\n" % (fd, op, arg))
if op == linuxwd.WDIOC_GETSUPPORT:
sys.stderr.write("Get support\n")
assert(mutate_flag is True)
assert (mutate_flag is True)
arg.options = sum(map(linuxwd.WDIOF.get, ['SETTIMEOUT', 'KEEPALIVEPING']))
arg.identity = (ctypes.c_ubyte*32)(*map(ord, 'Mock Watchdog'))
elif op == linuxwd.WDIOC_GETTIMEOUT: