remove workaround for a Python <=3.7 bug

This commit is contained in:
Maximilian Hils 2022-03-13 19:20:22 +01:00
parent 2387719ace
commit 8bb7ad468f

View File

@ -103,14 +103,6 @@ def run(
# Not supported on Windows # Not supported on Windows
pass pass
# Make sure that we catch KeyboardInterrupts on Windows.
# https://stackoverflow.com/a/36925722/934719
if os.name == "nt":
async def wakeup():
while True:
await asyncio.sleep(0.2)
asyncio.ensure_future(wakeup())
master.run() master.run()
except exceptions.OptionsError as e: except exceptions.OptionsError as e:
print("{}: {}".format(sys.argv[0], e), file=sys.stderr) print("{}: {}".format(sys.argv[0], e), file=sys.stderr)