magnum/magnum/db/sqlalchemy
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
..
alembic Add 'host' field to Pod object. 2015-06-25 17:37:35 -04:00
__init__.py Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
alembic.ini Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
api.py Eliminate mutable default arguments 2015-07-10 13:33:49 +00:00
migration.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
models.py Add 'host' field to Pod object. 2015-06-25 17:37:35 -04:00