0b9b7de79a
The best practice in Python is not to use mutable object (i.e. list, dictionary, or instances of most classes) as value of default argument. See: https://docs.python.org/2/tutorial/controlflow.html#default-argument-values This patch also added a hacking rule to enforce this practice. Change-Id: I4aa8aede57d6fd31b4b30c3f7535b819e591165d Closes-Bug: 1471349
362 B
362 B
Magnum Style Commandments
- Step 1: Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
- Step 2: Read on
Magnum Specific Commandments ---------------------------
- [M301] policy.enforce_wsgi decorator must be the first decorator on a method.
- [M322] Method's default argument shouldn't be mutable.