magnum/magnum/api
Hongbin Lu 0b9b7de79a Eliminate mutable default arguments
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
2015-07-10 13:33:49 +00:00
..
controllers Merge "Validate bay type on creating resources" 2015-07-08 14:25:23 +00:00
middleware Eliminate mutable default arguments 2015-07-10 13:33:49 +00:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
app.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
auth.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
config.py Port NoExceptionTracebackHook from Ironic 2015-01-17 19:58:19 +00:00
hooks.py Modify magnum api context to use user_name and project_name 2015-06-15 18:27:15 -04:00
validation.py Validate bay type on creating resources 2015-07-07 15:41:16 -04:00