glance/tools
ChangBo Guo(gcb) 9d4225289b Leverage dict comprehension in PEP-0274
PEP-0274 introduced dict comprehensions to replace dict constructor
with a sequence of key-pairs[1], these are two benefits:
- First, it makes the code look neater.
- Second, it gains a micro-optimization.

Glance 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/

Co-Authored-By: ChangBo Guo(gcb) <eric.guo@easystack.cn>
Co-Authored-By: Kamil Rykowski <kamil.rykowski@intel.com>
Change-Id: I0ba408f9c616dcdb09618f6256db76b9facc0c1d
2015-05-28 01:46:02 +00:00
..
colorizer.py hacking: upgrade to 0.9.x serie 2014-10-06 14:41:03 +02:00
install_venv.py To fixes import error for run_tests.sh 2014-04-29 13:12:23 +08:00
install_venv_common.py Update glance.openstack.common 2014-10-16 11:12:18 +08:00
migrate_image_owners.py Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
with_venv.sh Enclose command args in with_venv.sh 2013-09-20 05:50:40 +08:00