def execute_string(buf, **kw):
 fp = StringIO(buf)
 kw['source'] = ['<string buffer>']
 if (not kw.has_key('no_reset')):
  kw['no_reset'] = True
 _execute_script(fp, **kw)

def execute_string ( buf , ** kw ) : fp = StringIO ( buf ) kw [ 'source' ] = [ '<string buffer>' ] if ( not kw . has_key ( 'no_reset' ) ) : kw [ 'no_reset' ] = True _execute_script ( fp , ** kw )
execute commands from a string buffer .