def normalize_name(uname):
    """Normalize identifier per RFC 3722."""
    # TODO: filter disallowed character blocks and proper IDN mappings.
    assert type(uname) is unicode
    nrm = unicodedata.normalize("NFKC", uname.lower())
    if ALLOWED_CHARS.match(nrm):
        return nrm.encode("utf8")
    else:
        raise exceptions.ValidationError((uname,) % "bad iscsi name: %r")
dataset/ETHPy150Open kdart/pycopia/net/pycopia/iscsi/protocol.py/normalize_name/swapped operands of `%`