100
100
raise MalformedHunkHeader("Does not match format.", line)
102
102
(orig, mod) = matches.group(1).split(" ")
104
104
raise MalformedHunkHeader(str(e), line)
105
105
if not orig.startswith('-') or not mod.startswith('+'):
106
106
raise MalformedHunkHeader("Positions don't start with + or -.", line)
108
108
(orig_pos, orig_range) = parse_range(orig[1:])
109
109
(mod_pos, mod_range) = parse_range(mod[1:])
111
111
raise MalformedHunkHeader(str(e), line)
112
112
if mod_range < 0 or orig_range < 0:
113
113
raise MalformedHunkHeader("Hunk range is negative", line)