From e038062beb5890de00ac2f075f6b22820e46a51c Mon Sep 17 00:00:00 2001 From: Nicholas Muesch Date: Tue, 15 Jan 2019 09:20:48 -0500 Subject: [PATCH] Finish Python3 Support --- postgres/datadog_checks/postgres/postgres.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/postgres/datadog_checks/postgres/postgres.py b/postgres/datadog_checks/postgres/postgres.py index 808edabfd4780..2d85f2e97da43 100644 --- a/postgres/datadog_checks/postgres/postgres.py +++ b/postgres/datadog_checks/postgres/postgres.py @@ -756,13 +756,11 @@ def _query_scope(self, cursor, scope, key, db, instance_tags, relations, is_cust # [(metric-map, value), (metric-map, value), ...] # metric-map is: (dd_name, "rate"|"gauge") # shift the results since the first columns will be the "descriptors" - values = zip([scope['metrics'][c] for c in cols], row[len(desc):]) - # To submit simply call the function for each value v # v[0] == (metric_name, submit_function) # v[1] == the actual value # tags are - for v in values: + for v in zip([scope['metrics'][c] for c in cols], row[len(desc):]): v[0][1](self, v[0][0], v[1], tags=tags) return len(results)