From 796d38fd849f21a49c12bec87cb2b661026d0ad5 Mon Sep 17 00:00:00 2001 From: Ariel Otilibili Date: Tue, 16 Apr 2024 17:53:53 +0200 Subject: [PATCH] Replaced locale.getdefaultlocale() with locale.getlocale() * part of #2780, fixes for zenmap/zenmapCore/I18N.py * locale.getdefaultlocale() is deprecated since Python 3.11 * locale.getlocale() provides the same output [1]. [1] https://docs.python.org/3.13/whatsnew/3.13.html#pending-removal-in-python-3-15 --- zenmap/zenmapCore/I18N.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenmap/zenmapCore/I18N.py b/zenmap/zenmapCore/I18N.py index 62e1598af..05b67fb1c 100644 --- a/zenmap/zenmapCore/I18N.py +++ b/zenmap/zenmapCore/I18N.py @@ -74,7 +74,7 @@ def get_locales(): locales = val.split(":") break try: - loc, enc = locale.getdefaultlocale() + loc, enc = locale.getlocale() if loc is not None: locales.append(loc) except ValueError: