[PATCH 50 of 52 Narval cube] [flake8] fix E713 test for membership should be 'not in'

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


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585733381 0
#      Wed Apr 01 09:29:41 2020 +0000
# Node ID 6ad09b1a3ae0dfda41e54a3c6ced95c7da5a4bbe
# Parent  15f4557e020178bcc2b17d14b8150cb4ee2f6246
[flake8] fix E713 test for membership should be 'not in'

diff --git a/cubicweb_narval/views/bot.py b/cubicweb_narval/views/bot.py
--- a/cubicweb_narval/views/bot.py
+++ b/cubicweb_narval/views/bot.py
@@ -29,7 +29,7 @@
         req = self._cw
         _ = req._
         self._cw.add_css('cubes.narval.css')
-        if not 'vtitle' in req.form:
+        if 'vtitle' not in req.form:
             self.w(u'<h1>%s</h1>' % _(self.title))
         self._running_plans()
         self._pending_plans()




More information about the cubicweb-devel mailing list