def _generateFallbackKoLangInfo(langinfo_db, koLangInst):
 class FallbackKoLangInfo(LangInfo, ):
  conforms_to_bases = ['Text']
  default_encoding = 'utf-8'
  def __init__(self, db, koLang):
   LangInfo.__init__(self, db)
   self.name = koLang.name
   if koLang.defaultExtension:
    self.exts = [koLang.defaultExtension]
 return FallbackKoLangInfo(langinfo_db, koLangInst)

def _generateFallbackKoLangInfo ( langinfo_db , koLangInst ) : class FallbackKoLangInfo ( LangInfo , ) : conforms_to_bases = [ 'Text' ] default_encoding = 'utf-8' def __init__ ( self , db , koLang ) : LangInfo . __init__ ( self , db ) self . name = koLang . name if koLang . defaultExtension : self . exts = [ koLang . defaultExtension ] return FallbackKoLangInfo ( langinfo_db , koLangInst )
generate a langinfo instance from the koilanguage instance .