diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-12-31 16:40:21 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-12-31 16:46:48 +0100 |
commit | 0730a57db438b935bc7f16957650a6ef25589598 (patch) | |
tree | 622f8dd3bc2684f7f60483ea402398500e807084 /gbp | |
parent | 7b0660abab858938330553a1379df57b2a9b851b (diff) |
patch_series: Don't fail on decoding errors when looking for DEP3 headers
Closes: #885929
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/patch_series.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/patch_series.py b/gbp/patch_series.py index 2bb15e6f..64a3b582 100644 --- a/gbp/patch_series.py +++ b/gbp/patch_series.py @@ -236,7 +236,7 @@ class Dep3Patch(Patch): # header and diff stat headers = collections.OrderedDict() current = 'long_desc' - with open(self.path) as file: + with open(self.path, errors='replace') as file: for line in file: if VALID_DEP3_ENDS.search(line): break @@ -254,6 +254,7 @@ class Dep3Patch(Patch): self._dep3_to_info(headers) + class PatchSeries(list): """ A series of L{Patch}es as read from a quilt series file). |