#NEWLINE# def exec_( _code_ , _globs_ = None , _locs_ = None ) : #NEWLINE# #INDENT# 'Execute code in a namespace.' #NEWLINE# if ( _globs_ is None ) : #NEWLINE# #INDENT# frame = sys . _getframe ( 1 ) #NEWLINE# _globs_ = frame . f_globals #NEWLINE# if ( _code_ 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_' )