Scripts: Make uichanges script work with Python 3

Change-Id: Ieb5abc4845098b62afa37a3e0e0fdf88326da2ab
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2022-01-17 09:06:59 +01:00
parent 64b6aca212
commit 358146a322

View File

@@ -176,7 +176,7 @@ def diffContext(ctx, old, new):
report += '\n\n Git Commits:\n' report += '\n\n Git Commits:\n'
for g in gitResults: for g in gitResults:
if g: if g:
g = u' {}'.format(unicode(g.replace('\n', '\n '), errors='replace')) g = u' {}'.format(g.replace('\n', '\n '), errors='replace')
report += g report += g
return report return report