def _rpidl(parent, child):
    l = len(parent)
    if child[:l] != parent:
        raise x_shell("Parent %s is not related to child %s" % (parent, child))
    else:
        return child[l:]
dataset/ETHPy150Open tjguk/winsys/winsys/shell.py/_rpidl/original