Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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')