deb-mistral/HACKING.rst
xpress 15d8ac5092 Enforce style check for xrange()
The following check is added in this commit:
* hacking checks for xrange()

Change-Id: If7bd8759445e5ca8cd5f4e74d91dcd02fa267904
Partial-Implements: blueprint mistral-hacking
2017-02-02 18:00:39 +05:30

13 lines
402 B
ReStructuredText

Style Commandments
==================
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
Mistral Specific Commandments
-----------------------------
- [M318] Change assertEqual(A, None) or assertEqual(None, A) by optimal assert
like assertIsNone(A)
- [M327] Do not use xrange(). xrange() is not compatible with Python 3. Use
range() or six.moves.range() instead.