Merge "Enable the "not-callable" pylint check"

This commit is contained in:
Jenkins 2015-01-06 13:20:15 +00:00 committed by Gerrit Code Review
commit 03f33d67d7
4 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,6 @@ disable=
no-member,
no-method-argument,
no-self-argument,
not-callable,
no-value-for-parameter,
super-on-old-class,
# "W" Warnings for stylistic problems or minor programming issues

View File

@ -197,7 +197,8 @@ class SecurityGroupAgentRpcMixin(object):
"or configured as NoopFirewallDriver."),
func.__name__)
else:
return func(self, *args, **kwargs)
return func(self, # pylint: disable=not-callable
*args, **kwargs)
return decorated_function
@skip_if_noopfirewall_or_firewall_disabled

View File

@ -79,6 +79,7 @@ class APICMechanismDriver(api.MechanismDriver):
inst.synchronizer = (
APICMechanismDriver.get_base_synchronizer(inst))
inst.synchronizer.sync_base()
# pylint: disable=not-callable
return f(inst, *args, **kwargs)
return inner

View File

@ -63,6 +63,7 @@ class ApicL3ServicePlugin(db_base_plugin_v2.NeutronDbPluginV2,
mechanism_apic.APICMechanismDriver.
get_router_synchronizer(inst))
inst.synchronizer.sync_router()
# pylint: disable=not-callable
return f(inst, *args, **kwargs)
return inner