def str2hex(s):
    res = ["'"]
    for c in s:
        res.append("\\x%02x" % ord(c))
    res.append("'")
    return "".join(res)
Kill a task attempt
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/aid.py/str2hex--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/libs/hadoop/gen-py/hadoop/api/jobtracker/Jobtracker.py/Iface.killTaskAttempt