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