Skip to content

Commit a651608

Browse files
committed
Remove type fixes to move to 966
1 parent 57fffe8 commit a651608

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

babel/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)