neutron/neutron
Ihar Hrachyshka 0a75865b1f Use jsonutils instead of stdlib json
jsonutils provides multiple benefits in comparison to pure stdlib json
(like using simplejson on Python 2.6).

Similar patch was already merged before [1], but since it lacked hacking
rule to enforce jsonutils usage, new occurrences of stdlib json module
usage were introduced.

This patch switches all the code to using jsonutils and adds a hacking
rule to enforce the rule.

The hacking rule requires that jsonutils module does not mimic as 'json'
thru using import renames, so the code was updated not to rename the
module when doing import.

The hacking rule was shamelessly copied from the corresponding nova
review [2].

[1]: https://review.openstack.org/#/c/99760/
[2]: https://review.openstack.org/111296/

Change-Id: Ie7a5bb76445e15cde9fbf9ff3d2101a014637b37
2014-08-14 12:45:58 +02:00
..
agent Fixes an issue with FIP re-association 2014-08-11 19:12:14 -07:00
api Merge "Return 403 instead of 404 on attr policy failures" 2014-08-07 22:01:41 +00:00
cmd Move ARP responder test to sanity command 2014-07-29 18:44:07 +03:00
common Merge "Make sure that gateway is in CIDR range by default" 2014-08-05 07:54:22 +00:00
db Merge "Remove duplicated check for router connect to external net" 2014-08-11 19:13:55 +00:00
debug Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
extensions Fix to throw correct error code for bad attribute 2014-08-08 10:30:23 +05:30
hacking Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
locale Imported Translations from Transifex 2014-08-06 06:04:23 +00:00
notifiers Fix spelling mistakes 2014-08-01 16:10:23 +00:00
openstack Fix spelling mistakes 2014-08-01 16:10:23 +00:00
plugins Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
scheduler Fix DB Duplicate error when scheduling distributed routers 2014-08-01 06:51:45 -07:00
server Configure agents using neutron.common.config.init (formerly .parse) 2014-06-17 21:56:24 +02:00
services Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
tests Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
auth.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
context.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
hooks.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
manager.py Moved rpc_compat.py code back into rpc.py 2014-06-24 10:35:39 +02:00
neutron_plugin_base_v2.py Renamed start_rpc_listener -> start_rpc_listeners 2014-06-19 12:58:01 +02:00
policy.py Allow to import _LC, _LE, _LI and _LW functions directly 2014-07-17 14:56:19 +00:00
quota.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
service.py Moved rpc_compat.py code back into rpc.py 2014-06-24 10:35:39 +02:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
wsgi.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00