gcc-changelog: do not use PatchSet.from_filename
authorMartin Liska <mliska@suse.cz>
Fri, 16 Dec 2022 11:21:59 +0000 (12:21 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 16 Dec 2022 11:21:59 +0000 (12:21 +0100)
commit66c2f03d4cbfdefa489ba6280d2cbb13efec1ad1
treedcf23f77d6a9d120996bc5d50b2b2bd4a9c82d99
parent8f2a8be579fc6acadb9fc356701fcb5e7b0feed5
gcc-changelog: do not use PatchSet.from_filename

Use rather PatchSet constructor where we can pass
properly opened file with newline='\n'.

contrib/ChangeLog:

* gcc-changelog/git_email.py: Use PatchSet constructor
as newline argument is not supported with older unidiff
library.
contrib/gcc-changelog/git_email.py