Make "print" PY3 compatible

Bug #1594741 reported by Bhagyashri Shewale
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Bhagyashri Shewale
Python client library for Sahara
Fix Released
Low
Bhagyashri Shewale
python-muranoclient
Fix Released
Undecided
Bhagyashri Shewale

Bug Description

In PY3, print should used as a function instead of a statement

For e.g. print "openstack"
    File "<stdin>", line 1
          print "openstack"
                    ^
          SyntaxError: Missing parentheses in call to 'print'

Changed in python-saharaclient:
assignee: nobody → Bhagyashri Shewale (bhagyashri-shewale)
Revision history for this message
Vitalii Gridnev (vgridnev) wrote :

Please point me on place of issue

Changed in python-saharaclient:
status: New → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-saharaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/332070

Changed in python-saharaclient:
status: Incomplete → In Progress
Changed in python-saharaclient:
importance: Undecided → Low
Changed in trove:
assignee: nobody → Bhagyashri Shewale (bhagyashri-shewale)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/332113

Changed in trove:
status: New → In Progress
Changed in trove:
assignee: Bhagyashri Shewale (bhagyashri-shewale) → Peter Stachowski (peterstac)
Changed in trove:
assignee: Peter Stachowski (peterstac) → Bhagyashri Shewale (bhagyashri-shewale)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/332659

Changed in python-muranoclient:
assignee: nobody → Bhagyashri Shewale (bhagyashri-shewale)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/332113
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=fa08854a6d11a60ea3d5f52490c7ee9db322ad69
Submitter: Jenkins
Branch: master

commit fa08854a6d11a60ea3d5f52490c7ee9db322ad69
Author: bhagyashris <email address hidden>
Date: Tue Jun 21 17:18:17 2016 +0530

    Replace print statment with print function

    In PY3, print should used as a function instead of a statement.
    This is PY27 compatible as well.

    For example, instances of the first case were replaced by the
    second case:

    >>> print 'help'
      File "<stdin>", line 1
        print 'help'
                   ^
    SyntaxError: Missing parentheses in call to 'print'

    >>> print('help')
    help

    Partially implements: blueprint trove-python3
    Change-Id: I21de65bc874d0fcfb51714857f8eaa97acb2f51d
    Closes-bug: #1594741

Changed in trove:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-muranoclient (master)

Reviewed: https://review.openstack.org/332659
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=e782a9c619cc847f646c399871474a93293cdaf7
Submitter: Jenkins
Branch: master

commit e782a9c619cc847f646c399871474a93293cdaf7
Author: bhagyashris <email address hidden>
Date: Wed Jun 22 11:51:26 2016 +0530

    Replace print statment with print function

    In PY3, print should used as a function instead of a statement.
    This is PY27 compatible as well.

    For example, instances of the first case were replaced by the
    second case:

    >>> print 'help'
      File "<stdin>", line 1
        print 'help'
                   ^
    SyntaxError: Missing parentheses in call to 'print'

    >>> print('help')
    help

    Change-Id: I247aedf4a3090c2d75338389cf383adb090da231
    Closes-bug: #1594741

Changed in python-muranoclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-muranoclient 0.9.0

This issue was fixed in the openstack/python-muranoclient 0.9.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Reviewed: https://review.openstack.org/332070
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=e8161526ca5fd109ffb2446e083f61892b107d4f
Submitter: Jenkins
Branch: master

commit e8161526ca5fd109ffb2446e083f61892b107d4f
Author: bhagyashris <email address hidden>
Date: Tue Jun 21 15:20:15 2016 +0530

    print statment has become a function in py3

    Change-Id: Iba2adae27bbe74f98254df34b493600df6c05b39
    Closes-bug: #1594741

Changed in python-saharaclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/trove 6.0.0.0b2

This issue was fixed in the openstack/trove 6.0.0.0b2 development milestone.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/python-saharaclient 0.16.0

This issue was fixed in the openstack/python-saharaclient 0.16.0 release.

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.