mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +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('Buildstatus for \'%s/%s\':' % (action.src_project, action.src_package))
|
||||||
print('\n'.join(get_results(apiurl, action.src_project, action.src_package)))
|
print('\n'.join(get_results(apiurl, action.src_project, action.src_package)))
|
||||||
if opts.diff:
|
if opts.diff:
|
||||||
diff = ''
|
diff = b''
|
||||||
try:
|
try:
|
||||||
# works since OBS 2.1
|
# works since OBS 2.1
|
||||||
diff = request_diff(apiurl, reqid)
|
diff = request_diff(apiurl, reqid)
|
||||||
|
Loading…
Reference in New Issue
Block a user