diff --git a/resources/lib/library_sync/sections.py b/resources/lib/library_sync/sections.py index 817b724b..84576a6f 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -97,15 +97,13 @@ class Section(object): "}}").format(self=self) def __bool__(self): - """Magic method to compare sections with =. section_id, name and - section_type must be set and be identical.""" + """bool(Section) returns True if section_id, name and section_type are set.""" return (self.section_id is not None and self.name is not None and self.section_type is not None) def __eq__(self, section): - """Sections compare equal if their section_id, name and plex_type (first - prio) OR section_type (if there is no plex_type is set) compare equal. + """Sections compare equal if their section_id, name and plex_type (first prio) OR section_type (if there is no plex_type is set) compare equal. """ return (self.section_id == section.section_id and self.name == section.name and