flake8 check: H233 the print operator

Bug #1211130 reported by Kui Shi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Kui Shi

Bug Description

As the H233 checking is added into Python package "hacking", the print operator problem is exposed.

Update the print operator to meet this check.

Details of H233:
in hacking Python package: core.py

@flake8ext
def hacking_python3x_print_function(logical_line):
    r"""Check that all occurrences look like print functions, not
        print operator.

    As of Python 3.x, the print operator has been removed.

    Okay: print(msg)
    Okay: print (msg)
    H233: print msg
    H233: print >>sys.stderr, "hello"
    H233: print msg,
    """

Kui Shi (skuicloud)
Changed in cinder:
assignee: nobody → Kui Shi (skuicloud)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Revision history for this message
Kui Shi (skuicloud) wrote :
Changed in cinder:
status: In Progress → Fix Released
Eric Harney (eharney)
Changed in cinder:
milestone: none → havana-3
Thierry Carrez (ttx)
Changed in cinder:
milestone: havana-3 → 2013.2
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.