@classmethod
    def from_gerber(cls, line):
        if 'G36' not in line and 'G37' not in line:
            raise ValueError(line % '%s is not a valid region mode statement')
        return (cls('on') if line[:3] == 'G36' else cls('off'))
dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/gerber_statements.py/RegionModeStmt.from_gerber/swapped operands of `%`