yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #07183
[Bug 1226943] Re: Need Use built-in print() function instead of print statement
** No longer affects: tempest
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1226943
Title:
Need Use built-in print() function instead of print statement
Status in OpenStack Telemetry (Ceilometer):
Fix Released
Status in Cinder:
Fix Released
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Status in Orchestration API (Heat):
Fix Released
Status in OpenStack Identity (Keystone):
In Progress
Status in OpenStack Neutron (virtual network service):
Fix Released
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
In python 3 print statement is not supported, so we should use only print() functions.
built-in function was introduce in python 2.6
http://www.python.org/dev/peps/pep-3105/
Note :This function is not normally available as a built-in since the name print is recognized as the print statement.
To disable the statement and use the print() function, use this future statement at the top of your module:
from __future__ import print_function
http://docs.python.org/2/library/functions.html#print
To manage notifications about this bug go to:
https://bugs.launchpad.net/ceilometer/+bug/1226943/+subscriptions