[PATCH 18 of 24 Openidrelay cube] [flake8] fix imported but unused

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:54:01 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585512560 0
#      Sun Mar 29 20:09:20 2020 +0000
# Node ID 95b70021c250b3b7b479fdc403cd48e357b70343
# Parent  80e31fe447217cb1aa1da420764bde9dc6dc6ee2
[flake8] fix imported but unused

diff --git a/cubicweb_openidrelay/schema.py b/cubicweb_openidrelay/schema.py
--- a/cubicweb_openidrelay/schema.py
+++ b/cubicweb_openidrelay/schema.py
@@ -16,7 +16,7 @@
 
 """cubicweb-openidrelay schema"""
 
-from yams.buildobjs import RelationDefinition, String
+from yams.buildobjs import RelationDefinition
 
 
 class openid(RelationDefinition):
diff --git a/cubicweb_openidrelay/utils.py b/cubicweb_openidrelay/utils.py
--- a/cubicweb_openidrelay/utils.py
+++ b/cubicweb_openidrelay/utils.py
@@ -6,7 +6,6 @@
 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
 """
 from __future__ import with_statement
-import threading
 
 
 def url_args(url):
diff --git a/cubicweb_openidrelay/views.py b/cubicweb_openidrelay/views.py
--- a/cubicweb_openidrelay/views.py
+++ b/cubicweb_openidrelay/views.py
@@ -5,23 +5,21 @@
 :contact: http://www.logilab.fr/ -- mailto:contact at logilab.fr
 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
 """
-from logilab.mtconverter import xml_escape
 from logilab.common.decorators import clear_cache, monkeypatch
-from logilab.common.registry import Registry, yes
+from logilab.common.registry import Registry
 
 from openid.consumer import consumer
 from openid.store import memstore
-from openid.extensions import ax, pape, sreg
+from openid.extensions import ax, sreg
 
 from cubicweb.utils import make_uid
 from cubicweb.appobject import AppObject
-from cubicweb.view import StartupView, View
-from cubicweb.predicates import (match_form_params, match_kwargs,
-                                 anonymous_user, configuration_values)
+from cubicweb.view import View
+from cubicweb.predicates import (match_form_params, anonymous_user, configuration_values)
 
-from cubicweb.web import Redirect, formfields as ff, formwidgets as fw, component, uicfg
+from cubicweb.web import Redirect, formfields as ff, formwidgets as fw
 from cubicweb.web.controller import Controller
-from cubicweb.web.views import authentication, urlrewrite, forms
+from cubicweb.web.views import authentication, urlrewrite, forms, uicfg
 from cubicweb.web.views import basecomponents, basetemplates as templates
 
 from cubicweb_openidrelay.utils import url_args




More information about the cubicweb-devel mailing list