File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ def get_territory_name(self, locale: Locale | str | None = None) -> str | None:
515515 if locale is None :
516516 locale = self
517517 locale = Locale .parse (locale )
518- return locale .territories .get (self .territory or '' )
518+ return locale .territories .get (self .territory )
519519
520520 territory_name = property (get_territory_name , doc = """\
521521 The localized territory name of the locale if available.
@@ -529,7 +529,7 @@ def get_script_name(self, locale: Locale | str | None = None) -> str | None:
529529 if locale is None :
530530 locale = self
531531 locale = Locale .parse (locale )
532- return locale .scripts .get (self .script or '' )
532+ return locale .scripts .get (self .script )
533533
534534 script_name = property (get_script_name , doc = """\
535535 The localized script name of the locale if available.
You can’t perform that action at this time.
0 commit comments