+ match_object = re.search(XrandrOutput.XRANDR_OUTPUT_REGEXP, xrandr_output)
+ remainder = xrandr_output[len(match_object.group(0)):]
+ if remainder:
+ raise RuntimeError("Parsing XRandR output failed, %d bytes left." % len(remainder))
+ match = match_object.groupdict()