Download gpt2eval_env/lib/python3.11/site-packages/setuptools/compat/py312.py from michaelxing/gpt2-small-repla: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/michaelxing/gpt2-small-repla/resolve/main/gpt2eval_env/lib/python3.11/site-packages/setuptools/compat/py312.py
- Command line
-
hf download hf://michaelxing/gpt2-small-repla/gpt2eval_env/lib/python3.11/site-packages/setuptools/compat/py312.py
-
curl -L -o py312.py https://huggingface.co/michaelxing/gpt2-small-repla/resolve/main/gpt2eval_env/lib/python3.11/site-packages/setuptools/compat/py312.py
366 Bytes
| from __future__ import annotations | |
| import sys | |
| if sys.version_info >= (3, 12, 4): | |
| # Python 3.13 should support `.pth` files encoded in UTF-8 | |
| # See discussion in https://github.com/python/cpython/issues/77102 | |
| PTH_ENCODING: str | None = "utf-8" | |
| else: | |
| from .py39 import LOCALE_ENCODING | |
| # PTH_ENCODING = "locale" | |
| PTH_ENCODING = LOCALE_ENCODING | |