tracetool: avoid str.rpartition() Python 2.5 function
The str.rpartition() function is related to str.split() and is used for splitting strings. It was introduced in Python 2.5 and therefore cannot be used in tracetool as Python 2.4 compatibility is required. Replace the code using str.rsplit(). Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com> Reviewed-by: NLluís Vilanova <vilanova@ac.upc.edu>
Showing
想要评论请 注册 或 登录