bao-mozjs-src-python 140.14.0-0

SpiderMonkey source slice (python) for bao-mozjs-sys
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
from __future__ import annotations

import locale

from click import secho

# Needed for locale.getpreferredencoding(False) to work
# in pip._internal.utils.encoding.auto_decode
try:
    locale.setlocale(locale.LC_ALL, "")
except locale.Error as e:  # pragma: no cover
    # setlocale can apparently crash if locale are uninitialized
    secho(f"Ignoring error when setting locale: {e}", fg="red")