parameters: (func, args, msg=None, verbose=0, dry_run=0)
docstring: Perform some action that affects the outside world (eg.  by
      writing to the filesystem).  Such actions are special because they
      are disabled by the 'dry_run' flag.  This method takes care of all
      that bureaucracy for you; all you have to do is supply the
      function to call and an argument tuple for it (to embody the
      "external action" being performed), and an optional message to
      print.
docstring_summary: Perform some action that affects the outside world (eg.  by
      writing to the filesystem).  Such actions are special because they
      are disabled by the 'dry_run' flag.  This method takes care of all
      that bureaucracy for you; all you have to do is supply the
      function to call and an argument tuple for it (to embody the
      "external action" being performed), and an optional message to
      print.
docstring_tokens: Perform some action that affects the outside world ( eg . by writing to the filesystem ) . Such actions are special because they are disabled by the dry_run flag . This method takes care of all that bureaucracy for you ; all you have to do is supply the function to call and an argument tuple for it ( to embody the external action being performed ) and an optional message to print .
function: def execute (func, args, msg=None, verbose=0, dry_run=0):
      """Perform some action that affects the outside world (eg.  by
      writing to the filesystem).  Such actions are special because they
      are disabled by the 'dry_run' flag.  This method takes care of all
      that bureaucracy for you; all you have to do is supply the
      function to call and an argument tuple for it (to embody the
      "external action" being performed), and an optional message to
      print.
      """
      if msg is None:
          msg = "%s%r" % (func.__name__, args)
          if msg[-2:] == ',)':        # correct for singleton tuple
              msg = msg[0:-2] + ')'
  
      log.info(msg)
      if not dry_run:
          func(*args)
function_tokens: def execute ( func , args , msg = None , verbose = 0 , dry_run = 0 ) : if msg is None : msg = "%s%r" % ( func . __name__ , args ) if msg [ - 2 : ] == ',)' : # correct for singleton tuple msg = msg [ 0 : - 2 ] + ')' log . info ( msg ) if not dry_run : func ( * args )