mirror of
https://github.com/openSUSE/osc.git
synced 2025-03-09 01:11:44 +01:00
- make travis-ci happy again...
It got broken in commit 6a332bc1c651b1555a5891f0a7db07795f4602ca
This commit is contained in:
parent
6a332bc1c6
commit
178120c99e
@ -319,8 +319,8 @@ Binary file 'binary' has changed.
|
||||
# TODO: Package.get_diff should return a consistent format
|
||||
# (regardless of the used python version)
|
||||
def __canonise_diff(diff):
|
||||
diff = re.sub('^@@ -(\d+) ', '@@ -\\1,\\1 ', diff, re.MULTILINE)
|
||||
diff = re.sub('^(@@ -\d+,\d+) \+(\d+) ', '\\1 +\\2,\\2 ', diff, re.MULTILINE)
|
||||
diff = re.sub('^@@ -(\d+) ', '@@ -\\1,\\1 ', diff, flags=re.MULTILINE)
|
||||
diff = re.sub('^(@@ -\d+,\d+) \+(\d+) ', '\\1 +\\2,\\2 ', diff, flags=re.MULTILINE)
|
||||
return diff
|
||||
|
||||
got = __canonise_diff(got)
|
||||
|
Loading…
x
Reference in New Issue
Block a user