'Returns True iff this language conforms to the given `lang`.'

def conforms_to(self, lang):

    if (lang == self.name):
        return True
    if self.conforms_to_bases:
        if (lang in self.conforms_to_bases):
            return True
        for base in self.conforms_to_bases:
            try:
                base_li = self._db.langinfo_from_lang(base)
            except LangInfoError:
                pass
            else:
                if base_li.conforms_to(lang):
                    return True
    return False
