Skip to content

Commit 1b51153

Browse files
authored
fixed #117 to be Python 3.13 compatible (#119)
Co-authored-by: TGSOFTGMBH\sven.gaechter <[email protected]>
1 parent 12ee51f commit 1b51153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fdb/gstat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import datetime
2626
import weakref
2727
from collections import namedtuple
28-
from locale import LC_ALL, LC_CTYPE, getlocale, setlocale, resetlocale
28+
from locale import LC_ALL, LC_CTYPE, getlocale, setlocale
2929
import sys
3030

3131
GSTAT_25 = 2
@@ -658,7 +658,7 @@ def parse_encryption(line):
658658
if sys.platform == 'win32':
659659
setlocale(_LOCALE_, '')
660660
else:
661-
resetlocale(_LOCALE_)
661+
setlocale(LC_ALL, '')
662662
else:
663663
setlocale(_LOCALE_, locale)
664664
return db

0 commit comments

Comments
 (0)