flake8 check: H233 the print operator
Bug #1211130 reported by
Kui Shi
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_
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,
"""
Changed in cinder: | |
assignee: | nobody → Kui Shi (skuicloud) |
Changed in cinder: | |
milestone: | none → havana-3 |
Changed in cinder: | |
milestone: | havana-3 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/42287
Review: https:/