MCPcopy Create free account
hub / github.com/SolSaviour/INFO1112-Materials / _cli_patch

Function _cli_patch

Week 6/server.py:52–61  ·  view source on GitHub ↗
(cli_args)

Source from the content-addressed store, hash-verified

50
51
52def _cli_patch(cli_args): # pragma: no coverage
53 parsed_args, _ = _cli_parse(cli_args)
54 opts = parsed_args
55 if opts.server:
56 if opts.server.startswith('gevent'):
57 import gevent.monkey
58 gevent.monkey.patch_all()
59 elif opts.server.startswith('eventlet'):
60 import eventlet
61 eventlet.monkey_patch()
62
63
64if __name__ == '__main__':

Callers 1

server.pyFile · 0.85

Calls 1

_cli_parseFunction · 0.85

Tested by

no test coverage detected