parameters: (name, new_suffix)
return_statement: return split [0] + new_suffix
docstring: Replaces the suffix of name by new_suffix.
          If no suffix exists, the new one is added.
docstring_summary: Replaces the suffix of name by new_suffix.
          If no suffix exists, the new one is added.
docstring_tokens: Replaces the suffix of name by new_suffix . If no suffix exists the new one is added .
function: def replace_suffix (name, new_suffix):
      """ Replaces the suffix of name by new_suffix.
          If no suffix exists, the new one is added.
      """
      assert isinstance(name, basestring)
      assert isinstance(new_suffix, basestring)
      split = os.path.splitext (name)
      return split [0] + new_suffix
function_tokens: def replace_suffix ( name , new_suffix ) : assert isinstance ( name , basestring ) assert isinstance ( new_suffix , basestring ) split = os . path . splitext ( name ) return split [ 0 ] + new_suffix