PEP8: fix E713: test for membership should be 'not in'
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 30 Jul 2018 02:56:46 +0000 (14:56 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 24 Aug 2018 05:49:25 +0000 (07:49 +0200)
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/__init__.py

index 1a3b24bca580b401b6c2cf8cb6d8887c2a238d98..4bf9d71f107c1d5b4d1da3f0bf4319ed2750f728 100644 (file)
@@ -264,7 +264,7 @@ def check_all_substituted(text):
 
     :param text: The text to search for substitution variables
     """
-    if not "${" in text:
+    if "${" not in text:
         return
 
     var_start = text.find("${")