mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
remove workaround for a Python <=3.7 bug
This commit is contained in:
parent
2387719ace
commit
8bb7ad468f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user