]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Enable the "not-callable" pylint check
authorAngus Lees <gus@inodes.org>
Tue, 23 Dec 2014 00:13:27 +0000 (11:13 +1100)
committerAngus Lees <gus@inodes.org>
Wed, 31 Dec 2014 04:33:44 +0000 (15:33 +1100)
commit73c9a5fc7c0ed9758af28e7061428544b2475af0
tree809fb10307c1717944b3048238264df8c358a3f3
parent2b378162f311832038a91d22f218005070ffd029
Enable the "not-callable" pylint check

This check catches attempts to call variables that pylint believes are
not functions.  A trivial example would be:

    # Trivial example caught by this check:
    foo = dict()
    print foo('bar')  # <- oops, meant foo['bar']

This change enables the "not-callable" pylint check, after disabling a
few cases where the alert triggers but the usage was intended (defining
decorators).

Change-Id: I09ad929902509018fe7183a15b784601c36b6196
Related-Bug: #1356224
.pylintrc
neutron/agent/securitygroups_rpc.py
neutron/plugins/ml2/drivers/cisco/apic/mechanism_apic.py
neutron/services/l3_router/l3_apic.py