]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add hacking check for print() statements
authorJay S. Bryant <jsbryant@us.ibm.com>
Mon, 6 Apr 2015 16:22:09 +0000 (11:22 -0500)
committerJay S. Bryant <jsbryant@us.ibm.com>
Tue, 7 Apr 2015 19:38:37 +0000 (14:38 -0500)
commitc2658d9c09d9960d6028e9685fe0baa6c50d0f54
tree4ec6c8e0f9ed780c2e82b41bd285e5239e140b5a
parentf8b6feb5eb9bcf41a68ad516da520b79559faa4c
Add hacking check for print() statements

We are frequently having to -1 patches because people
forget print() statements that were used for debug in
their development.  Can save everyone time and trouble by
adding this simple hacking check.

The check excluded the cinder/cmd directory as the files in there
legitimately need to use the print() command.  Also wsgi.py and
the test_hds_nas_backend.py files make use of print, so I have
excluded those from checking as well.

Change-Id: I2066eeb2bdc6c9af294d0b9befb7e0b32abd1378
HACKING.rst
cinder/hacking/checks.py
cinder/tests/test_hacking.py
cinder/tests/test_hds_hnas_backend.py
cinder/wsgi.py