(environ=os.environ)
Dump the shell environment as HTML.
Dump the shell environment as HTML.
Dump the shell environment as HTML .
def print_environ(environ=os.environ):
    """Dump the shell environment as HTML."""
    keys = sorted(environ.keys())
    print()
    print("<H3>Shell Environment:</H3>")
    print("<DL>")
    for key in keys:
        print("<DT>", html.escape(key), "<DD>", html.escape(environ[key]))
    print("</DL>")
    print()
def print_environ ( environ = os . environ ) : keys = sorted ( environ . keys ( ) ) print ( ) print ( "<H3>Shell Environment:</H3>" ) print ( "<DL>" ) for key in keys : print ( "<DT>" , html . escape ( key ) , "<DD>" , html . escape ( environ [ key ] ) ) print ( "</DL>" ) print ( )