magnum/magnum/common
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
..
pythonk8sclient Adds TLS support in pythonk8sclient. 2015-06-25 18:54:48 +09:00
__init__.py Create a ReST API entrypoint 2014-11-18 14:01:20 -07:00
clients.py Fix ignored E121 to E125 pep 8 rules 2015-06-08 10:55:34 +00:00
config.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
context.py Add make_admin_context to Magnum context 2015-06-24 16:18:09 +08:00
docker_utils.py Rename image_id to image in container object 2015-06-23 23:07:13 +08:00
exception.py Merge "Remove unused fields "from_*" from API controller" 2015-07-07 09:55:10 +00:00
k8s_manifest.py Merge "Improving Unit Test coverage of k8s_manifest" 2015-05-27 13:59:32 +00:00
magnum_keystoneclient.py Support use admin creds in KeystoneClientV3 2015-06-24 16:18:09 +08:00
paths.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
policy.py Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
rpc.py Only define RequestContextSerializer once 2015-05-27 05:44:12 +01:00
rpc_service.py Add periodic task framework 2015-07-02 17:01:21 +08:00
safe_utils.py Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
service.py Eliminate mutable default arguments 2015-07-10 13:33:49 +00:00
short_id.py Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
urlfetch.py Use oslo.log instead of oslo.incubator log module 2015-05-29 18:28:23 +08:00
utils.py Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
yamlutils.py Use yaml.safe_loader instead of yaml.loader 2015-04-12 13:09:10 -07:00