deb-sahara/sahara/utils
ChangBo Guo(gcb) 4dc5dfdada Leverage dict comprehension in PEP-0274
PEP-0274 introduced dict comprehensions to replace dict constructor
with a sequence of key-pairs[1], these are twobenefits:
  First, it makes the code look neater.
  Second, it gains a micro-optimization.

sahara dropped python 2.6 support in Kilo, we can leverage this now.

Note: This commit doesn't handle dict constructor with kwargs.
This commit also adds a hacking rule.

[1]http://legacy.python.org/dev/peps/pep-0274/

Closes-Bug: #1430786
Change-Id: I507f2c520ddab1ae3d8487bf7aea497306eb6eb2
2015-04-02 01:51:41 +00:00
..
hacking Leverage dict comprehension in PEP-0274 2015-04-02 01:51:41 +00:00
notification Rewrite log levels and messages 2015-03-12 17:16:06 +03:00
openstack Leverage dict comprehension in PEP-0274 2015-04-02 01:51:41 +00:00
__init__.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
api_validator.py Refactoring datasource, job and job_binary name validations 2015-01-27 00:22:43 -05:00
api.py Rewrite log levels and messages 2015-03-12 17:16:06 +03:00
cluster_progress_ops.py Merge "Move updating provision progress to conductor" 2015-03-19 11:15:21 +00:00
configs.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
crypto.py Migrate to oslo.concurrency 2014-12-29 12:11:48 +00:00
edp.py [EDP] Add Oozie Shell Job Type 2015-03-04 11:06:39 -05:00
files.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
general.py Minor - allow changing status description of deleting cluster 2015-03-30 14:31:07 +00:00
hashabledict.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
keymgr.py Adding barbican client and keymgr module 2015-03-09 09:08:25 -04:00
patches.py Split sahara into sahara-api and sahara-engine 2014-04-28 17:54:32 +04:00
poll_utils.py Add usages of poll util for service modules 2015-03-28 04:51:07 +00:00
procutils.py Add indirect VMs access implementation 2015-02-02 09:59:03 +00:00
proxy.py Rewrite log levels and messages 2015-03-12 17:16:06 +03:00
remote.py Using oslo_* instead of oslo.* 2015-02-04 13:19:28 +03:00
resources.py Leverage dict comprehension in PEP-0274 2015-04-02 01:51:41 +00:00
rpc.py Initialize MQ transport only once 2015-02-05 14:46:19 -08:00
sqlatypes.py Using oslo_* instead of oslo.* 2015-02-04 13:19:28 +03:00
ssh_remote.py Rewrite log levels and messages 2015-03-12 17:16:06 +03:00
tempfiles.py Add translation support to service and utils modules 2014-07-29 12:45:22 +04:00
types.py Add translation support to service and missed modules 2014-07-31 13:20:58 +04:00
wsgi.py Raise the default max header to accommodate large tokens 2015-03-19 23:43:35 -07:00
xmlutils.py [EDP] Add Oozie Shell Job Type 2015-03-04 11:06:39 -05:00