[PATCH 44 of 52 Narval cube] [flake8] fix F401 imported but unused

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:44 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585729151 0
#      Wed Apr 01 08:19:11 2020 +0000
# Node ID edb8d6244d6afd1c323cc68a14b2fdceb15345ae
# Parent  b03a40cf03537bf978be93a403a5161d58135b7c
[flake8] fix F401 imported but unused

diff --git a/cubicweb_narval/narvalbot/__init__.py b/cubicweb_narval/narvalbot/__init__.py
--- a/cubicweb_narval/narvalbot/__init__.py
+++ b/cubicweb_narval/narvalbot/__init__.py
@@ -34,7 +34,7 @@
 
 from logilab.common.configuration import Configuration, Method
 from logilab.common.logging_ext import set_log_methods
-from logilab.common.textutils import (splitstrip, apply_units, text_to_dict,
+from logilab.common.textutils import (apply_units, text_to_dict,
                                       TIME_UNITS, BYTE_UNITS)
 
 NARVAL_SOFTWARE_ROOT = __path__[0]
diff --git a/cubicweb_narval/schema.py b/cubicweb_narval/schema.py
--- a/cubicweb_narval/schema.py
+++ b/cubicweb_narval/schema.py
@@ -19,7 +19,7 @@
 
 from logilab.common.tasksqueue import MEDIUM, PRIORITY
 from yams.buildobjs import (DEFAULT_ATTRPERMS, EntityType, RelationDefinition,
-                            String, Datetime, Int)
+                            String, Int)
 from cubicweb.schema import PUB_SYSTEM_ENTITY_PERMS, make_workflowable
 from cubicweb_file.schema import File
 
diff --git a/cubicweb_narval/views/__init__.py b/cubicweb_narval/views/__init__.py
--- a/cubicweb_narval/views/__init__.py
+++ b/cubicweb_narval/views/__init__.py
@@ -1,5 +1,5 @@
 from cubicweb.view import EntityView, NOINDEX, NOFOLLOW
-from cubicweb.predicates import is_instance, has_related_entities
+from cubicweb.predicates import is_instance
 from cubicweb.web.views import uicfg
 from cubicweb_narval.logformat import log_to_html
 
diff --git a/cubicweb_narval/views/plan.py b/cubicweb_narval/views/plan.py
--- a/cubicweb_narval/views/plan.py
+++ b/cubicweb_narval/views/plan.py
@@ -31,7 +31,7 @@
 from cubicweb_narval.views import no_robot_index
 
 from cubicweb.web.views import forms
-from cubicweb.web import controller, formwidgets, formfields, Redirect
+from cubicweb.web import controller, formwidgets, formfields
 
 from cubicweb.utils import json_dumps
 
diff --git a/test/test_functional.py b/test/test_functional.py
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -19,8 +19,6 @@
 
 import os.path
 
-from cubicweb import ValidationError, devtools
-
 from cubicweb_narval.testutils import NarvalBaseTC
 
 import narvalbot
diff --git a/test/unittest_views.py b/test/unittest_views.py
--- a/test/unittest_views.py
+++ b/test/unittest_views.py
@@ -18,8 +18,6 @@
 
 import os.path
 
-from cubicweb import devtools
-
 from cubicweb_narval.testutils import NarvalBaseTC
 
 import narvalbot




More information about the cubicweb-devel mailing list