diff options
author | Martin Basti <mbasti@redhat.com> | 2016-10-07 15:07:49 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-10-11 16:50:32 +0200 |
commit | 4628522c532c6df0295308e5f749989c2536caa6 (patch) | |
tree | 70dab1dab7558d030f409b87e62a7bdf4680bbce /ipalib/parameters.py | |
parent | 49b29591aa979560068449b78fd547915420ff08 (diff) | |
download | freeipa-4628522c532c6df0295308e5f749989c2536caa6.tar.gz freeipa-4628522c532c6df0295308e5f749989c2536caa6.tar.xz freeipa-4628522c532c6df0295308e5f749989c2536caa6.zip |
Pylint: fix the rest of unused local variables
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r-- | ipalib/parameters.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py index 32ff9a8df..1117fbeff 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -119,7 +119,6 @@ from ipapython import kerberos from ipapython.dn import DN from ipapython.dnsutil import DNSName -# pylint: disable=unused-variable def _is_null(value): return not value and value != 0 # NOTE: False == 0 @@ -946,7 +945,7 @@ class Param(ReadOnly): def __json__(self): json_dict = {} - for (a, k, d) in self.kwargs: + for a, k, _d in self.kwargs: if k in (callable, DefaultFrom): continue elif isinstance(getattr(self, a), frozenset): @@ -1786,7 +1785,6 @@ class AccessTime(Str): if ts[index] == 'month': index += 1 self._check_interval(ts[index], self._check_month_num) - month_num = int(ts[index]) index = self._check_M_spec(ts, index + 1) elif ts[index] == 'week': self._check_interval(ts[index + 1], self._check_woty) @@ -1940,8 +1938,6 @@ class DNSNameParam(Param): def _convert_scalar(self, value, index=None): if isinstance(value, unicode): - error = None - try: validate_idna_domain(value) except ValueError as e: |