read escaped character \t as '\t' instead of '\\t' Python ConfigParser
<p>I have a config.ini file containing <code>delimiter = \t</code> which i now want to read using the python3 ConfigParser.
However, the resulting string is <code>'\\t'</code> instead of <code>'\t'</code> which breaks my program.
Is there a more elegant option to solve this problem instead of just manually stripping the extra '\' from every variable containing an escaped character?
I cannot find an option for ConfigParser().read() to not escape the backslash it finds in the file.</p>

<p>Python3 has a 'unicode_escape' codec.</p>

<pre><code>r"a\tb".decode('unicode_escape')

'a\tb'
</code></pre>

<p>Sources:</p>

<p><a href="https://bytes.com/topic/python/answers/37952-escape-chars-string" rel="nofollow">https://bytes.com/topic/python/answers/37952-escape-chars-string</a></p>

<p><a href="http://stackoverflow.com/questions/14820429/how-do-i-decodestring-escape-in-python3#14820462">how do I .decode(&#39;string-escape&#39;) in Python3?</a></p>

python escaping special-characters configparser