Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF: Prefer using getlocale() instead of getdefaultlocale() #1329

Merged
merged 1 commit into from
Jun 27, 2024

Commits on Jun 26, 2024

  1. RF: Prefer using getlocale() instead of getdefaultlocale()

    Prefer using `getlocale()` instead of `getdefaultlocale()`.
    
    Fixes:
    ```
    /home/runner/work/nibabel/nibabel/nibabel/cmdline/dicomfs.py:40:
     DeprecationWarning: 'locale.getdefaultlocale' is deprecated and
     slated for removal in Python 3.15. Use setlocale(), getencoding()
     and getlocale() instead.
          encoding = locale.getdefaultlocale()[1]
    ```
    
    raised for example at:
    https://github.com/nipy/nibabel/actions/runs/9637811213/job/26577586721#step:7:164
    jhlegarreta committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    95e7c15 View commit details
    Browse the repository at this point in the history