parameters: (filename)
return_statement: return filename
docstring: Truncate the filename with ellipsis if too long
docstring_summary: Truncate the filename with ellipsis if too long
docstring_tokens: Truncate the filename with ellipsis if too long
function: def truncated(filename):
      """ Truncate the filename with ellipsis if too long """
      maxlen = 80 - len(EMBELLISHMENTS)
      trunclen = maxlen - 3  # ...
      if len(filename) > maxlen:
          filename = filename[:trunclen] + '...'
      return filename
function_tokens: def truncated ( filename ) : maxlen = 80 - len ( EMBELLISHMENTS ) trunclen = maxlen - 3 # ... if len ( filename ) > maxlen : filename = filename [ : trunclen ] + '...' return filename