Public bug reported:

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)

** Affects: nova
     Importance: Undecided
         Status: New

** Affects: sahara
     Importance: Undecided
         Status: New

** Description changed:

  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.
  
- Eg. 
+ Example:-
  File : nova/tools/xenserver/stress_test.py
  Line : 166
-             print "%s, finished in %.2f secs" % (result, duration)
+             print "%s, finished in %.2f secs" % (result, duration)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1532086

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

Status in OpenStack Compute (nova):
  New
Status in Sahara:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1532086/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to