diff options
author | Martin Basti <mbasti@redhat.com> | 2016-10-04 20:02:32 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-10-06 10:43:36 +0200 |
commit | 135047d03c1780d682998369aaa531585b39a069 (patch) | |
tree | 13dfe4637a7f264bcc911b7bc1f36a8662ee1762 /ipaserver/rpcserver.py | |
parent | d9375881460d63cdd696bb0705da0ac205db9870 (diff) | |
download | freeipa-135047d03c1780d682998369aaa531585b39a069.tar.gz freeipa-135047d03c1780d682998369aaa531585b39a069.tar.xz freeipa-135047d03c1780d682998369aaa531585b39a069.zip |
Pylint: remove unused variables in ipaserver package
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipaserver/rpcserver.py')
-rw-r--r-- | ipaserver/rpcserver.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py index 83b54c3e9..c4f724af7 100644 --- a/ipaserver/rpcserver.py +++ b/ipaserver/rpcserver.py @@ -64,8 +64,6 @@ from ipaplatform.paths import paths from ipapython.version import VERSION from ipalib.text import _ -# pylint: disable=unused-variable - if six.PY3: unicode = str @@ -423,7 +421,7 @@ class WSGIExecutioner(Executioner): status = HTTP_STATUS_SUCCESS response = self.wsgi_execute(environ) headers = [('Content-Type', self.content_type + '; charset=utf-8')] - except Exception as e: + except Exception: self.exception('WSGI %s.__call__():', self.name) status = HTTP_STATUS_SERVER_ERROR response = status @@ -654,7 +652,6 @@ class KerberosWSGIExecutioner(WSGIExecutioner, HTTP_Status, KerberosSession): if user_ccache is None: status = HTTP_STATUS_SERVER_ERROR - response_headers = [('Content-Type', 'text/html; charset=utf-8')] self.log.error( '%s: %s', status, |