def get_file_extension(filepath):
_ext = os.path.splitext(filepath)[-<NUM_LIT:1>]<EOL>if _ext:<EOL><INDENT>return _ext[<NUM_LIT:1>:] if _ext.startswith('<STR_LIT:.>') else _ext<EOL><DEDENT>return '<STR_LIT>'<EOL>
Copy if anyconfig.utils.get_file_extension is not available.

>>> get_file_extension("/a/b/c")
''
>>> get_file_extension("/a/b.txt")
'txt'
>>> get_file_extension("/a/b/c.tar.xz")
'xz'