json, ipaddress, locale: Python3.13 updates (#12046)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Amin Alaee
2024-05-27 14:12:00 +02:00
committed by GitHub
parent de0fc0afb8
commit 05955c0cb8
4 changed files with 13 additions and 9 deletions

View File

@@ -96,7 +96,6 @@ __all__ = [
"getpreferredencoding",
"Error",
"setlocale",
"resetlocale",
"localeconv",
"strcoll",
"strxfrm",
@@ -121,6 +120,9 @@ if sys.version_info >= (3, 11):
if sys.version_info < (3, 12):
__all__ += ["format"]
if sys.version_info < (3, 13):
__all__ += ["resetlocale"]
if sys.platform != "win32":
__all__ += ["LC_MESSAGES"]
@@ -133,7 +135,9 @@ def getlocale(category: int = ...) -> tuple[_str | None, _str | None]: ...
def setlocale(category: int, locale: _str | Iterable[_str | None] | None = None) -> _str: ...
def getpreferredencoding(do_setlocale: bool = True) -> _str: ...
def normalize(localename: _str) -> _str: ...
def resetlocale(category: int = ...) -> None: ...
if sys.version_info < (3, 13):
def resetlocale(category: int = ...) -> None: ...
if sys.version_info < (3, 12):
def format(