deb-sahara/sahara/utils/hacking
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
..
__init__.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
checks.py Leverage dict comprehension in PEP-0274 2015-04-02 01:51:41 +00:00
commit_message.py Take back upstream checks for commit message 2015-03-10 21:30:39 +03:00
import_checks.py Take back upstream checks for import order 2015-03-13 15:28:01 +03:00