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 /ipapython/cookie.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 'ipapython/cookie.py')
| -rw-r--r-- | ipapython/cookie.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ipapython/cookie.py b/ipapython/cookie.py index eaf6a37e7..97f24b2fb 100644 --- a/ipapython/cookie.py +++ b/ipapython/cookie.py @@ -27,8 +27,6 @@ from six.moves.urllib.parse import urlparse from ipapython.ipa_log_manager import log_mgr -# pylint: disable=unused-variable - ''' Core Python has two cookie libraries, Cookie.py targeted to server side and cookielib.py targeted to client side. So why this module and @@ -542,7 +540,7 @@ class Cookie(object): received from. ''' - scheme, domain, path, params, query, fragment = urlparse(url) + _scheme, domain, path, _params, _query, _fragment = urlparse(url) if self.domain is None: self.domain = domain.lower() @@ -599,7 +597,7 @@ class Cookie(object): from ipalib.util import validate_domain_name try: validate_domain_name(url_domain) - except Exception as e: + except Exception: return False if cookie_domain is None: @@ -644,7 +642,10 @@ class Cookie(object): cookie_name = self.key - url_scheme, url_domain, url_path, url_params, url_query, url_fragment = urlparse(url) + ( + url_scheme, url_domain, url_path, + _url_params, _url_query, _url_fragment + ) = urlparse(url) cookie_expiration = self.get_expiration() if cookie_expiration is not None: |
