def inferdelimiterfromname(fname):
if not is_string_like(fname):<EOL><INDENT>return '<STR_LIT:\t>'<EOL><DEDENT>if fname.endswith('<STR_LIT>'):<EOL><INDENT>return '<STR_LIT:\t>'<EOL><DEDENT>elif fname.endswith('<STR_LIT>'):<EOL><INDENT>return '<STR_LIT:U+002C>'<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:\t>'<EOL><DEDENT>
Infer delimiter from file extension.

* If *fname* ends with '.tsv', return '\\t'.

* If *fname* ends with '.csv', return ','.

* Otherwise, return '\\t'.

**Parameters**

    **fname** :  string

        File path assumed to be for a separated-variable file.

**Returns**

    **delimiter** :  string

        String in ['\\t', ','], the inferred delimiter.