def create_treeitem(filename, staged=False, deleted=False, untracked=False):
 icon_name = icons.status(filename, deleted, staged, untracked)
 return TreeWidgetItem(filename, icons.name_from_basename(icon_name), deleted=deleted)

def create_treeitem ( filename , staged = False , deleted = False , untracked = False ) : icon_name = icons . status ( filename , deleted , staged , untracked ) return TreeWidgetItem ( filename , icons . name_from_basename ( icon_name ) , deleted = deleted )
given a filename .