How do I remove double back slash (`\\`) from a bytes object?
<p>For example:</p>
<pre><code>t = str.encode(msg)

print(t)
</code></pre>
<p>I am getting double slashes, like this:</p>
<pre><code>b'\\xda\\xad\\x94\\xb4\\x0bg\\x92]R\\x9a1y\\x9d\\xed\\x04\\xd5\\x8e+\\x07\\xf8\\x03\\x1bm\\xd6\\x96\\x10\\xca80\\xe26\\x8a
</code></pre>
<p>But, I would like to get the result as:</p>
<pre><code>b'\xda\xad\x94\xb4\x0bg\x92]R\x9a1y\x9d\xed\x04\xd5\x8e+\x07\xf8\x03\x1bm\xd6\x96\x10\xca80\xe26\x8a'
</code></pre>
<p>Any help would be appreciated.</p>