Skip to content

Commit 98e6e45

Browse files
committed
Revert tomllib change
1 parent df40ed7 commit 98e6e45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/tomllib/_parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
from __future__ import annotations
66

7+
from types import MappingProxyType
8+
79
from ._re import (
810
RE_DATETIME,
911
RE_LOCALTIME,
@@ -40,7 +42,7 @@
4042
KEY_INITIAL_CHARS: Final = BARE_KEY_CHARS | frozenset("\"'")
4143
HEXDIGIT_CHARS: Final = frozenset("abcdef" "ABCDEF" "0123456789")
4244

43-
BASIC_STR_ESCAPE_REPLACEMENTS: Final = frozendict(
45+
BASIC_STR_ESCAPE_REPLACEMENTS: Final = MappingProxyType(
4446
{
4547
"\\b": "\u0008", # backspace
4648
"\\t": "\u0009", # tab

0 commit comments

Comments
 (0)