[PATCH 6 of 6 Activitystream cube] Flake8: fix errors

Nsukami Patrick ndkpatt at gmail.com
Wed Jun 12 13:07:18 CEST 2019


# HG changeset patch
# User Nsukami Patrick <ndkpatt at gmail dot com>
# Date 1560337442 0
#      Wed Jun 12 11:04:02 2019 +0000
# Node ID 484dba6b48f97a4f9672e1462ad313e968a55a26
# Parent  852b25d33bc2a19a26a43ec604a4c26a61de4175
Flake8: fix errors

- F401 'cubicweb.predicates.is_instance' imported but unused
- F821 undefined name '_'

diff --git a/cubicweb_activitystream/views.py b/cubicweb_activitystream/views.py
--- a/cubicweb_activitystream/views.py
+++ b/cubicweb_activitystream/views.py
@@ -1,6 +1,7 @@
 from logilab.mtconverter import xml_escape
-from cubicweb.predicates import is_instance, adaptable
+from cubicweb.predicates import adaptable
 from cubicweb.view import EntityView
+from cubicweb import _
 
 
 class AStreamView(EntityView):



More information about the cubicweb-devel mailing list