flake8 check: H233 the print operator

Bug #1211130 reported by Kui Shi on 2013-08-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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

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) on 2013-08-12
Changed in cinder:
assignee: nobody → Kui Shi (skuicloud)

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

Changed in cinder:
status: New → In Progress
Kui Shi (skuicloud) wrote :
Changed in cinder:
status: In Progress → Fix Released
Eric Harney (eharney) on 2013-09-05
Changed in cinder:
milestone: none → havana-3
Thierry Carrez (ttx) on 2013-10-17
Changed in cinder:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers