tcprtt: fix compatibility for python3
authorzhenwei pi <pizhenwei@bytedance.com>
Wed, 23 Jun 2021 08:24:11 +0000 (16:24 +0800)
committeryonghong-song <ys114321@gmail.com>
Wed, 23 Jun 2021 16:13:41 +0000 (09:13 -0700)
commitdcef7bcdf3feddcc5eb012d55223bc796993bc2a
tree930b30513f85fd036f4955c8f8d7f7123be95be6
parent5057944103d9e0094192a825aadcf7e0c24eb7a3
tcprtt: fix compatibility for python3

Suggested by Yonghong, tcprtt report error on python3:
    TypeError: can't concat str to bytes

Both python2 and python3, inet_ntop returns a string type, there is
no need to encode any more.

Test for python2 and python3, both work fine.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
tools/tcprtt.py