MCPcopy Create free account
hub / github.com/McCloudS/subgen / __str__

Method __str__

language_code.py:179–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 def to_name(self, in_english=True):
178 return self.name_en if in_english else self.name_native
179 def __str__(self):
180 if self.name_en is None:
181 return "Unknown"
182 return self.name_en
183
184 def __bool__(self):
185 return self.iso_639_1 is not None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected