remainder = xrandr_output[len(match_object.group(0)):]
if remainder:
raise RuntimeError(("Parsing XRandR output failed, %d bytes left unmatched after regular expression, "
remainder = xrandr_output[len(match_object.group(0)):]
if remainder:
raise RuntimeError(("Parsing XRandR output failed, %d bytes left unmatched after regular expression, "
- "starting at byte %d with ..'%s'.") % (len(remainder), len(len(match_object.group(0))), remainder[:10]))
+ "starting at byte %d with ..'%s'.") % (len(remainder), len(match_object.group(0)), remainder[:10]))
if not match["mode_width"]:
# TODO We'd need to apply the reverse transformation here. Let's see if someone complains, I doubt that this
# special case is actually required.
if not match["mode_width"]:
# TODO We'd need to apply the reverse transformation here. Let's see if someone complains, I doubt that this
# special case is actually required.