MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / print_environ

Function print_environ

tools/python-3.11.9-amd64/Lib/cgi.py:906–915  ·  view source on GitHub ↗

Dump the shell environment as HTML.

(environ=os.environ)

Source from the content-addressed store, hash-verified

904 del tb
905
906def print_environ(environ=os.environ):
907 """Dump the shell environment as HTML."""
908 keys = sorted(environ.keys())
909 print()
910 print("<H3>Shell Environment:</H3>")
911 print("<DL>")
912 for key in keys:
913 print("<DT>", html.escape(key), "<DD>", html.escape(environ[key]))
914 print("</DL>")
915 print()
916
917def print_form(form):
918 """Dump the contents of a form as HTML."""

Callers 1

testFunction · 0.85

Calls 4

sortedFunction · 0.85
printFunction · 0.50
keysMethod · 0.45
escapeMethod · 0.45

Tested by

no test coverage detected