Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: Source/bindings/scripts/generate_event_interfaces.py

Issue 183853024: Clean up compute_interfaces_info.py (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/scripts/compute_interfaces_info.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/generate_event_interfaces.py
diff --git a/Source/bindings/scripts/generate_event_interfaces.py b/Source/bindings/scripts/generate_event_interfaces.py
index 0cd8ec35fb475262e44b4e6198d5e898e0421fc7..09a0e39f0976dc54484a95642f41622f87a06707 100755
--- a/Source/bindings/scripts/generate_event_interfaces.py
+++ b/Source/bindings/scripts/generate_event_interfaces.py
@@ -82,7 +82,7 @@ def write_event_interfaces_file(interfaces_info, destination_filename, only_if_c
interface_name
for interface_name, interface_info in interfaces_info.iteritems()
if (interface_name == 'Event' or
- ('ancestors' in interface_info and
+ (interface_info['ancestors'] and
interface_info['ancestors'][-1] == 'Event')))
def extended_attribute_string(name, value):
« no previous file with comments | « Source/bindings/scripts/compute_interfaces_info.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698