← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1226943] Re: Need Use built-in print() function instead of print statement

 

I am unsure when Keystone made the conversion over to print()
exclusively from 'print' statements, however, I can confirm this is now
the case. It looks like it occurred during the Icehouse cycle.

** Changed in: keystone
       Status: In Progress => Fix Released

-- 
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 Dashboard (Horizon):
  Fix Committed
Status in OpenStack Identity (Keystone):
  Fix Released
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