def updateCommentNode(comment_node):

    if "pylint:" in str(comment_node.value):
        def replacer(part):
            return part.group(1) + ','.join(sorted(part.group(2).split(',')))

        new_value = re.sub(r"(pylint\: disable=)(.*)", replacer, str(comment_node.value), flags = re.M)
        comment_node.value = new_value
dataset/ETHPy150Open kayhayen/Nuitka/misc/autoformat.py/updateCommentNode/original