diff options
author | Yusuke Iwase <iwase.yusuke0@gmail.com> | 2015-09-09 10:17:45 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-10 11:14:58 +0900 |
commit | 23b2fc4b41a755ab1f9b7918c5d45f24291183d4 (patch) | |
tree | 2628ba3553b468f8673ed84ba03ec6727d0d6139 /debian/source | |
parent | 27befc18faf98463604e4b42442431da0a29ea55 (diff) |
utils: Add binary_str() method to print binary data
Because repr() is not enough to escape ascii code or control code,
MsgBase.__str__() may collapse representation with binary data.
This patch add binary_str() in order to convert binary data into a
sequence of '\x00' style string.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'debian/source')
0 files changed, 0 insertions, 0 deletions