def get_sq_ext(filename):
    """
    Gets the squadron extension from filename.
    Keyword arguments:
        filename -- the file to get the extension from
    """
    try:
        return filename[filename.rindex('~')+1:]
    except __HOLE__:
        return ''
dataset/ETHPy150Open gosquadron/squadron/squadron/template.py/get_sq_ext