#NEWLINE# def exec_( code , globs = None , locs = None ) : #NEWLINE# #INDENT# 'Execute code in a namespace.' #NEWLINE# if ( code is None ) : #NEWLINE# #INDENT# frame = sys . _getframe ( 1 ) #NEWLINE# globs = frame . f_globals #NEWLINE# if ( locs is None ) : #NEWLINE# #INDENT# locs = frame . f_locals #NEWLINE# #UNINDENT# del frame #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( locs is None ) : #NEWLINE# #INDENT# locs = globs #NEWLINE# #UNINDENT# #UNINDENT# exec ( 'exec code in globs, locs' )