diff options
| author | Martin Basti <mbasti@redhat.com> | 2016-09-26 14:08:17 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-09-27 13:35:58 +0200 |
| commit | 0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (patch) | |
| tree | 4f38fb6210abaa9f354353df2abda96d1b8fb612 /ipapython/dn.py | |
| parent | 452b08754d02b89c0e3117b83d9156e6110943c9 (diff) | |
| download | freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.tar.gz freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.tar.xz freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.zip | |
Remove unused variables in the code
This commit removes unused variables or rename variables as "expected to
be unused" by using "_" prefix.
This covers only cases where fix was easy or only one unused variable
was in a module
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipapython/dn.py')
| -rw-r--r-- | ipapython/dn.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ipapython/dn.py b/ipapython/dn.py index 4ba741e2f..3ee35c626 100644 --- a/ipapython/dn.py +++ b/ipapython/dn.py @@ -1186,9 +1186,10 @@ class DN(object): # differ in case must yield the same hash value. str_dn = ';,'.join([ - '++'.join( - ['=='.join((atype, avalue or '')) for atype,avalue,dummy in rdn] - ) for rdn in self.rdns + '++'.join([ + '=='.join((atype, avalue or '')) + for atype, avalue, _dummy in rdn + ]) for rdn in self.rdns ]) return hash(str_dn.lower()) @@ -1225,9 +1226,7 @@ class DN(object): def _cmp_sequence(self, pattern, self_start, pat_len): self_idx = self_start - self_len = len(self) pat_idx = 0 - # and self_idx < self_len while pat_idx < pat_len: r = cmp_rdns(self.rdns[self_idx], pattern.rdns[pat_idx]) if r != 0: |
