From 33b899d2915a331aa05a3f819eb5658e475a50d9 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Sat, 12 Jul 2025 21:51:17 +1000 Subject: [PATCH] Replace getdefaultlocale() with getlocale(). getdefaultlocale() is deprecated and will be removed in Python 3.15. --- gooey/tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gooey/tests/__init__.py b/gooey/tests/__init__.py index 4868a4c6..d6856807 100644 --- a/gooey/tests/__init__.py +++ b/gooey/tests/__init__.py @@ -55,7 +55,7 @@ def InitLocale(self): self._initial_locale = None locale.setlocale(locale.LC_ALL, 'C') else: - lang, enc = locale.getdefaultlocale() + lang, enc = locale.getlocale() self._initial_locale = wx.Locale(lang, lang[:2], lang) locale.setlocale(locale.LC_ALL, lang) @@ -75,4 +75,4 @@ def setUpModule(): def tearDownModule(): global app - app.Destroy() \ No newline at end of file + app.Destroy()