#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( CodeHandler , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# if ( 'source' not in kwargs ) : #NEWLINE# #INDENT# raise ValueError ( 'Must pass source to CodeHandler' ) #NEWLINE# #UNINDENT# source = kwargs [ 'source' ] #NEWLINE# if ( 'filename' not in kwargs ) : #NEWLINE# #INDENT# raise ValueError ( 'Must pass a filename to CodeHandler' ) #NEWLINE# #UNINDENT# filename = kwargs [ 'filename' ] #NEWLINE# argv = kwargs . get ( 'argv' , [ ] ) #NEWLINE# self . _runner = _CodeRunner ( source , filename , argv ) #NEWLINE# self . _loggers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for f in CodeHandler . _io_functions : #NEWLINE# #INDENT# self . _loggers [ f ] = self . _make_io_logger ( source )