def chapter_language(self, language): if language is not None and not is_ISO639_2(language): raise ValueError('not an ISO639-2 language code') self._chapter_language = language
def language(self, language): if language is None or is_ISO639_2(language): self._language = language else: raise ValueError('not an ISO639-2 language code')