[cwconfig] use "foo not in bar" instead of "not foo in bar"
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 10 Apr 2014 17:31:50 +0200
changeset 9682 fcb672023553
parent 9681 5a59d9835371
child 9683 74359402bfb0
[cwconfig] use "foo not in bar" instead of "not foo in bar"
cwconfig.py
--- a/cwconfig.py	Thu Apr 10 15:28:21 2014 +0200
+++ b/cwconfig.py	Thu Apr 10 17:31:50 2014 +0200
@@ -991,7 +991,7 @@
         super(CubicWebConfiguration, self).adjust_sys_path()
         # adding apphome to python path is not usually necessary in production
         # environments, but necessary for tests
-        if self.apphome and not self.apphome in sys.path:
+        if self.apphome and self.apphome not in sys.path:
             sys.path.insert(0, self.apphome)
 
     @property