original_docstring: Returns a sorted, unique list of parents of DirEntries (excluding the root /)
docstring: Returns a sorted, unique list of parents of DirEntries (excluding the root /)
docstring_tokens: Returns a sorted unique list of parents of DirEntries ( excluding the root / )
code: def _get_unique_parents(self, entry_list):
          """Returns a sorted, unique list of parents of DirEntries (excluding the root /)"""
          if entry_list and type(entry_list) not in (list, tuple):
              entry_list = [entry_list]
          parents = set()
          for entry in entry_list:
              parents.add(entry.parent)
          if "/" in parents:
              parents.remove("/")
          return sorted(parents)
code_tokens: def _get_unique_parents ( self , entry_list ) : if entry_list and type ( entry_list ) not in ( list , tuple ) : entry_list = [ entry_list ] parents = set ( ) for entry in entry_list : parents . add ( entry . parent ) if "/" in parents : parents . remove ( "/" ) return sorted ( parents )
short_docstring: Returns a sorted, unique list of parents of DirEntries (excluding the root /)
short_docstring_tokens: Returns a sorted unique list of parents of DirEntries ( excluding the root / )
comment: """Returns a sorted, unique list of parents of DirEntries (excluding the root /)"""