<s> from pycnic . core import WSGI , Handler <EOL> class Hello ( Handler ) : <EOL> def get ( self , name = "<STR_LIT>" ) : <EOL> return { <EOL> "<STR_LIT:message>" : "<STR_LIT>" . format ( name = name ) <EOL> } <EOL> class app ( WSGI ) : <EOL> routes = [ <EOL> ( "<STR_LIT:/>" , Hello ( ) ) , <EOL> ( "<STR_LIT>" , Hello ( ) ) <EOL> ] <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> from wsgiref . simple_server import make_server <EOL> try : <EOL> print ( "<STR_LIT>" ) <EOL> make_server ( '<STR_LIT>' , <NUM_LIT> , app ) . serve_forever ( ) <EOL> except KeyboardInterrupt : <EOL> pass <EOL> print ( "<STR_LIT>" ) </s>
