MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / decode_escapes

Function decode_escapes

src/dotenv/parser.py:105–109  ·  view source on GitHub ↗
(regex: Pattern[str], string: str)

Source from the content-addressed store, hash-verified

103
104
105def decode_escapes(regex: Pattern[str], string: str) -> str:
106 def decode_match(match: Match[str]) -> str:
107 return codecs.decode(match.group(0), "unicode-escape") # type: ignore
108
109 return regex.sub(decode_match, string)
110
111
112def parse_key(reader: Reader) -> Optional[str]:

Callers 1

parse_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…