Bug 1464869 - Fix flake8/pep8 issue by hand in accessible/ draft
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 25 May 2018 23:13:28 -0700
changeset 804344 398fb60f9a1c03959815ee782dce0a5e214d1b7f
parent 804343 b3a0c94a59b6c391d67d1b36e80d7ec118c52403
child 804345 b9d92c43cdb0aed309345d7318c03a8349c8caa1
push id112354
push usersledru@mozilla.com
push dateTue, 05 Jun 2018 20:25:44 +0000
bugs1464869
milestone62.0a1
Bug 1464869 - Fix flake8/pep8 issue by hand in accessible/ MozReview-Commit-ID: 5hKo37QtOtz
accessible/xpcom/AccEventGen.py
--- a/accessible/xpcom/AccEventGen.py
+++ b/accessible/xpcom/AccEventGen.py
@@ -128,17 +128,17 @@ def print_cpp(idl, fd, conf, eventname):
 
 def print_cpp_file(fd, conf, incdirs):
     idl_paths = set()
     fd.write("/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */\n\n")
     fd.write('#include "xpcAccEvents.h"\n')
 
     includes = []
     for e in conf.simple_events:
-        if not e in includes:
+        if e not in includes:
             includes.append(("nsIAccessible%s" % e))
 
     types = []
     for e in conf.simple_events:
         idl, idl_path = loadEventIDL(p, incdirs, e)
         idl_paths.add(idl_path)
         types.extend(interfaceAttributeTypes(idl))