def rm_inline_comment(area):
    """
    It removes the inline comments.
    """

    comment = TABLE.get(splitext(area.filename)[1], DEFAULT)
    def rep(index0, index1):
        chk = area.get(index0, index1)
        chk = chk.replace('%s ' % comment, '')
        chk = chk.replace(comment, '')
        return chk
    area.replace_ranges('sel', comment % '^ *%s ?', rep)
    area.clear_selection()
dataset/ETHPy150Open iogf/vy/vyapp/plugins/inline_comment.py/rm_inline_comment/swapped operands of `%`