Skip to content

Conversation

@pupitetris
Copy link

When tkfilebrowser is used inside a project, the code produces a DeprecationWarning due to the use of locale.getdefaultlocale.

See python/cpython#90817

Solution based on getdefaultlocale's help and CPython's own code in the calendar.LocaleTextCalendar class. Commit:

python/cpython@4fccf91

When tkfilebrowser is used inside a project, the code produces a
DeprecationWarning due to the use of locale.getdefaultlocale.

See python/cpython#90817

Solution based on getdefaultlocale's help and CPython's own code in
the calendar.LocaleTextCalendar class. Commit:

python/cpython@4fccf91
so it can be obtained within _getdefaultlocale
Do some shennanigans with what Windows returns to try to get a
valid language parse using babel Locale aliases.

Using babel.Locale preserves more locale information for the
formatting function calls.
@pupitetris
Copy link
Author

Please check PR #34 before this one, as it may be the most ellegant solution for these two PR (32 and 33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant