mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
Initialize diff as bytes
Otherwise, python 3 will throw a traceback if the fallback code is triggered, since it appends bytes.
This commit is contained in:
parent
406918469d
commit
ef1c605a32
@ -2492,7 +2492,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print('Buildstatus for \'%s/%s\':' % (action.src_project, action.src_package))
|
||||
print('\n'.join(get_results(apiurl, action.src_project, action.src_package)))
|
||||
if opts.diff:
|
||||
diff = ''
|
||||
diff = b''
|
||||
try:
|
||||
# works since OBS 2.1
|
||||
diff = request_diff(apiurl, reqid)
|
||||
|
Loading…
Reference in New Issue
Block a user