Message208995
You rather meant [2:-1] instead of [1:-1], but if initial "b'" and final "'" are not needed in result string, then maybe just call .decode() on an instance of bytes.
>>> str(b"xxx")
"b'xxx'"
>>> repr(b"xxx")
"b'xxx'"
>>> repr(b"xxx")[1:-1]
"'xxx"
>>> repr(b"xxx")[2:-1]
'xxx'
>>> b"xxx".decode()
'xxx' |
|
Date |
User |
Action |
Args |
2014-01-23 21:11:40 | Arfrever | set | recipients:
+ Arfrever, tarek, eric.araujo, lukasz.langa |
2014-01-23 21:11:40 | Arfrever | set | messageid: <1390511500.1.0.622143355364.issue20363@psf.upfronthosting.co.za> |
2014-01-23 21:11:40 | Arfrever | link | issue20363 messages |
2014-01-23 21:11:39 | Arfrever | create | |
|