summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorabhishekkekane <abhishek.kekane@nttdata.com>2016-01-18 05:01:11 -0800
committerAbhishek Kekane <abhishek.kekane@nttdata.com>2016-03-23 10:05:54 +0000
commit2d95f8c7d0cc604df2c7fdf447800362900f0caa (patch)
treed09487338ee6086a3344c8b8393183f3f518536b /HACKING.rst
parentca4402832db765247497171794ec2331a56b4a85 (diff)
downloadheat-2d95f8c7d0cc604df2c7fdf447800362900f0caa.tar.gz
Restrict use of iteritems, iterkeys and itervalues
Enabled hacking checks to check dict.iteritems, dict.itervalues and dict.iterkeys should not be used in the future and raise error while running pep8 using tox. Change-Id: I1239bb5c651d0193141d5bb830872caf172ec561
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst
index 7bc9ed75c..03c51a292 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -41,3 +41,12 @@ run --parallel` will run it in parallel (this is the default incantation tox
uses.) More information about testr can be found at:
http://wiki.openstack.org/testr
+
+Heat Specific Commandments
+--------------------------
+
+- [Heat301] Use LOG.warning() rather than LOG.warn().
+- [Heat302] Python 3: do not use dict.iteritems.
+- [Heat303] Python 3: do not use dict.iterkeys.
+- [Heat304] Python 3: do not use dict.itervalues.
+