yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #53527
[Bug 1595773] Re: Make print py3 compatible
Reviewed: https://review.openstack.org/333801
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=4a9f7378ec4d73c8bf16748e24bec45aa503b08e
Submitter: Jenkins
Branch: master
commit 4a9f7378ec4d73c8bf16748e24bec45aa503b08e
Author: zhengyao1 <zheng.yao1@xxxxxxxxxx>
Date: Fri Jun 24 17:34:26 2016 +0800
make print python3 compatible
The print '' in python2 was supported. But in python3,
print '' was error. In python3, recommend using print()
instead. This patch will fix it.
Change-Id: I226461b0400023dc44238d9e5ee1ae2f2430de9e
Closes-Bug: #1595773
** Changed in: swift
Status: In Progress => Fix Released
--
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/1595773
Title:
Make print py3 compatible
Status in daisycloud-core:
New
Status in Fuel Plugins:
In Progress
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Object Storage (swift):
Fix Released
Bug description:
In PY3,
Remove the print "", join the print () function to achieve the same
function.
Python 3:
#!/usr/bin/python
# -*- coding: utf-8 -*-
print ("cinder")
print "cinder"
File "code", line 5
print "cinder"
^
SyntaxError: Missing parentheses in call to 'print'
To manage notifications about this bug go to:
https://bugs.launchpad.net/daisycloud-core/+bug/1595773/+subscriptions
References