MCPcopy Create free account
hub / github.com/ActiveState/code / run

Function run

recipes/Python/474094_UrlAppServer/recipe-474094.py:20–25  ·  view source on GitHub ↗
(fun, args, input, output)

Source from the content-addressed store, hash-verified

18 return curr, []
19
20def run(fun, args, input, output):
21 sys.stdin = input
22 sys.stdout = output
23 fun(args)
24 sys.stdin = sys.__stdin__
25 sys.stdout = sys.__stdout__
26
27class UrlAppHandler(BaseHTTPRequestHandler):
28 def do_GET(self):

Callers 1

do_GETMethod · 0.70

Calls 1

funFunction · 0.50

Tested by

no test coverage detected