Use print('value') instead of print 'value' in python3

Bug #1532086 reported by sandeep nandal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bandit
Invalid
Undecided
Unassigned
Murano
Invalid
Low
Unassigned
OpenStack Compute (nova)
Won't Fix
Undecided
Zhihai Song
OpenStack DBaaS (Trove)
Invalid
Undecided
Gábor Antal
congress
Invalid
Undecided
Unassigned

Bug Description

Do not use print 'some string' in python3, python3 will complain.
Use print('some string') instead, because that will work on both python2 n python3.
It will help in adding support for python3.

Example:-
File : nova/tools/xenserver/stress_test.py
Line : 166
            print "%s, finished in %.2f secs" % (result, duration)

sandeep nandal (nandal)
description: updated
Zhihai Song (szhsong)
Changed in nova:
assignee: nobody → Zhihai Song (szhsong)
status: New → Invalid
status: Invalid → Won't Fix
Revision history for this message
sandeep nandal (nandal) wrote :

Hi Zhihai Song,

could you share the reason for the bug Won't Fix?

Revision history for this message
Zhihai Song (szhsong) wrote :

As far as i know. The python version is low on xenserver. That's why the xenserver tools still use the old format.

no longer affects: sahara
Changed in murano:
status: New → Confirmed
importance: Undecided → Low
milestone: none → mitaka-3
Changed in trove:
assignee: nobody → Gábor Antal (gabor.antal)
Changed in trove:
status: New → Invalid
Changed in bandit:
status: New → Invalid
Changed in murano:
status: Confirmed → Invalid
Anusha (anusha-iiitm)
Changed in congress:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.