Skip to content

TST/CLN: Avoid subprocess shell=True #49033

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

Merged
merged 6 commits into from
Oct 13, 2022
2 changes: 1 addition & 1 deletion pandas/_config/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _valid_locales(locales: list[str] | str, normalize: bool) -> list[str]:


def _default_locale_getter() -> bytes:
return subprocess.check_output(["locale -a"], shell=True)
return subprocess.check_output(["locale", "-a"])


def get_locales(
Expand Down