From d090087df2addccfa4a19b73f539cf2ba162dce2 Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Fri, 18 Mar 2016 10:10:24 -0700 Subject: [PATCH] Remove local variable named 'meh' Commit 3c584084 introduce a routine where the return value of a function is assigned to a local variable named 'meh' and then immediately returned. This is a poor programming style and an even poorer variable name choice. Change-Id: I4da66c99689a999a30f83390dfe3c79db646e431 --- neutron/quota/resource.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neutron/quota/resource.py b/neutron/quota/resource.py index f2ec4e10b6b..3a4244553ab 100644 --- a/neutron/quota/resource.py +++ b/neutron/quota/resource.py @@ -36,8 +36,7 @@ def _count_resource(context, plugin, collection_name, tenant_id): # and count in python, allowing older plugins to still be supported try: obj_count_getter = getattr(plugin, count_getter_name) - meh = obj_count_getter(context, filters={'tenant_id': [tenant_id]}) - return meh + return obj_count_getter(context, filters={'tenant_id': [tenant_id]}) except (NotImplementedError, AttributeError): obj_getter = getattr(plugin, "get_%s" % collection_name) obj_list = obj_getter(context, filters={'tenant_id': [tenant_id]})