r""" Unescapes the string 's'. \ followed by any character is replaced with just that character. Used internally when reading .config files.
(s)
| 6225 | |
| 6226 | |
| 6227 | def unescape(s): |
| 6228 | r""" |
| 6229 | Unescapes the string 's'. \ followed by any character is replaced with just |
| 6230 | that character. Used internally when reading .config files. |
| 6231 | """ |
| 6232 | return _unescape_sub(r"\1", s) |
| 6233 | |
| 6234 | # unescape() helper |
| 6235 | _unescape_sub = re.compile(r"\\(.)").sub |
no outgoing calls
no test coverage detected