mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 15:57:04 +00:00
scripts: python3: Use print function
Used print function instead of print statement to make the code work in python 3. (From OE-Core rev: 80fecc44761fa38ccf2e4dc6897b9f1f0c9c1ed0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
79be110c1f
commit
2e388048b6
@@ -108,7 +108,7 @@ def prepare_data(args):
|
||||
if max_log_size != 0:
|
||||
for fail in jsondata['failures']:
|
||||
if len(fail['log']) > max_log_size:
|
||||
print "Truncating log to allow for upload"
|
||||
print("Truncating log to allow for upload")
|
||||
fail['log'] = fail['log'][-max_log_size:]
|
||||
|
||||
data = json.dumps(jsondata, indent=4, sort_keys=True)
|
||||
@@ -143,7 +143,7 @@ def send_data(data, args):
|
||||
logging.error(e.reason)
|
||||
sys.exit(1)
|
||||
|
||||
print response.read()
|
||||
print(response.read())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -192,7 +192,7 @@ if __name__ == '__main__':
|
||||
args = arg_parse.parse_args()
|
||||
|
||||
if (args.json == False):
|
||||
print "Preparing to send errors to: "+args.server
|
||||
print("Preparing to send errors to: "+args.server)
|
||||
|
||||
data = prepare_data(args)
|
||||
send_data(data, args)
|
||||
|
||||
Reference in New Issue
Block a user