parameters: (msg)
return_statement: return _formatwarnmsg_impl(msg)
docstring: Function to format a warning the standard way.
docstring_summary: Function to format a warning the standard way.
docstring_tokens: Function to format a warning the standard way .
function: def _formatwarnmsg(msg):
      """Function to format a warning the standard way."""
      try:
          fw = formatwarning
      except NameError:
          pass
      else:
          if fw is not _formatwarning_orig:
              # warnings.formatwarning() was replaced
              return fw(msg.message, msg.category,
                        msg.filename, msg.lineno, msg.line)
      return _formatwarnmsg_impl(msg)
function_tokens: def _formatwarnmsg ( msg ) : try : fw = formatwarning except NameError : pass else : if fw is not _formatwarning_orig : # warnings.formatwarning() was replaced return fw ( msg . message , msg . category , msg . filename , msg . lineno , msg . line ) return _formatwarnmsg_impl ( msg )