parameters: (filename)
return_statement: return ''
docstring: Parses the essential suffix of a filename, discarding Unix-style version
    numbers in the name. For example for 'libz.so.1.2.8' returns '.so
docstring_summary: Parses the essential suffix of a filename, discarding Unix-style version
    numbers in the name. For example for 'libz.so.1.2.8' returns '.so
docstring_tokens: Parses the essential suffix of a filename discarding Unix - style version numbers in the name . For example for libz . so . 1 . 2 . 8 returns . so
function: def get_file_suffix(filename):
    """Parses the essential suffix of a filename, discarding Unix-style version
    numbers in the name. For example for 'libz.so.1.2.8' returns '.so'"""
    if filename in SPECIAL_ENDINGLESS_FILENAMES:
      return filename
    while filename:
      filename, suffix = os.path.splitext(filename)
      if not suffix[1:].isdigit():
        return suffix
    return ''
function_tokens: def get_file_suffix ( filename ) : if filename in SPECIAL_ENDINGLESS_FILENAMES : return filename while filename : filename , suffix = os . path . splitext ( filename ) if not suffix [ 1 : ] . isdigit ( ) : return suffix return ''