0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-17 22:52:21 +00:00

remove unused variables ()

##### Summary
<!--- Describe the change below, including rationale and design decisions -->
Removing variables which are not used in Python code
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->

##### Component Name
<!--- Write the short name of the module or plugin below -->
- python.d.plugin
- portcheck python module
- postgres python module

##### Additional Information
<!--- Include additional information to help people understand the change here -->
<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->

<!--- Paste log output below, e.g. before and after your change -->
```paste below

```
This commit is contained in:
Paweł Krupa 2018-10-19 10:29:56 +02:00 committed by GitHub
parent 865f1380ee
commit d47ca7429d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 12 deletions
collectors/python.d.plugin/postgres

View file

@ -669,7 +669,7 @@ class Service(SimpleService):
slot_name=slot_name)
def _get_data(self):
result, error = self._connect()
result, _ = self._connect()
if result:
cursor = self.connection.cursor(cursor_factory=DictCursor)
try:
@ -781,7 +781,7 @@ def add_database_stat_chart_(order, definitions, name, database_name):
chart_template = CHARTS[name]
chart_name = '_'.join([database_name, name])
order.insert(0, chart_name)
name, title, units, family, context, chart_type = chart_template['options']
name, title, units, _, context, chart_type = chart_template['options']
definitions[chart_name] = {
'options': [name, title + ': ' + database_name, units, 'db ' + database_name, context, chart_type],
'lines': create_lines(database_name, chart_template['lines'])}