8206:adf11836cfce | 8207:d359172d11be |
---|---|
9 | 9 |
10 import re | 10 import re |
11 import os | 11 import os |
12 | 12 |
13 | 13 |
14 class GitDiffParser(object): | 14 class GitDiffParser: |
15 """ | 15 """ |
16 Class implementing a class to store and parse diff output. | 16 Class implementing a class to store and parse diff output. |
17 """ | 17 """ |
18 HunkHeaderRegexp = re.compile(r'^@@ -([0-9,]+) \+([0-9,]+) @@(.*)', | 18 HunkHeaderRegexp = re.compile(r'^@@ -([0-9,]+) \+([0-9,]+) @@(.*)', |
19 re.DOTALL) | 19 re.DOTALL) |