magnum/magnum/api/middleware
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
..
__init__.py Remove # -*- encoding: utf-8 -*- from some python files 2015-02-15 14:33:56 +08:00
auth_token.py Eliminate mutable default arguments 2015-07-10 13:33:49 +00:00
parsable_error.py Attempt to fix functional gate test 2015-06-19 10:34:08 -04:00