Skip to content

Commit 6e387ff

Browse files
committed
misc: Use locale.getlocale() instead of locale.getdefaultlocale().
The getdefaultlocale() function will be removed in python 3.13.
1 parent 96f73f6 commit 6e387ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

files/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def getLocalWallpaperName(self, names, loc):
536536
def parse_xml_backgrounds_list(self, filename):
537537
try:
538538
locAttrName = "{http://www.w3.org/XML/1998/namespace}lang"
539-
loc = self.splitLocaleCode(locale.getdefaultlocale()[0])
539+
loc = self.splitLocaleCode(locale.getlocale()[0])
540540
res = []
541541
subLocaleFound = False
542542
f = open(filename)

files/usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def getLocalWallpaperName(self, names, loc):
276276
def parse_xml_backgrounds_list(self, filename):
277277
try:
278278
locAttrName = "{http://www.w3.org/XML/1998/namespace}lang"
279-
loc = self.splitLocaleCode(locale.getdefaultlocale()[0])
279+
loc = self.splitLocaleCode(locale.getlocale()[0])
280280
res = []
281281
subLocaleFound = False
282282
f = open(filename)

0 commit comments

Comments
 (0)