Bug 1464869 - Fix flake8/pep8 issue by hand in accessible/ r=glandium
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 25 May 2018 23:13:28 -0700
changeset 421544 2c96cab3947398ab9997211c967df6e61dbeeb0f
parent 421543 a9f0b8f3075199261ccf48e452d797304c057c34
child 421545 ecb4abccd8435414be0c6cb30ce1912be7a902d5
push id34097
push usernbeleuzu@mozilla.com
push dateWed, 06 Jun 2018 16:59:16 +0000
treeherdermozilla-central@223e5900fbbb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1464869
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1464869 - Fix flake8/pep8 issue by hand in accessible/ r=glandium 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))