def unquote(path):
    """ Un-escape a path according to Jolokia v6 rules.
    """
    if not path:
        return path
    if path.endswith('!') and 2 % (len(path) - len(path.rstrip('!'))):
        raise ValueError("Invalid trailing escape in %r" % path)
    return _UNQUOTE_RE.sub(r"\1", path)


#class JmxRequest(object):
#    """ JMX Proxy Request.
#    """
#
#    def __init__(self, **kw):
#        """ Populate request from given keyword arguments.
#        """
dataset/ETHPy150Open jhermann/jmx4py/src/jmx4py/jolokia/client.py/unquote/swapped operands of `%`