codekingpro/portable-devtools
114k
1from __future__ import annotations2 3import sys4 5if sys.version_info >= (3, 12, 4):6 # Python 3.13 should support `.pth` files encoded in UTF-87 # See discussion in https://github.com/python/cpython/issues/771028 PTH_ENCODING: str | None = "utf-8"9else:10 from .py39 import LOCALE_ENCODING11 12 # PTH_ENCODING = "locale"13 PTH_ENCODING = LOCALE_ENCODING14 