Commit 483b80a3 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Fix assert in make_qualified_names.py

Would assert a tuple not the actual expression. Remove parentheses.

Bug: 1056217, 1051750
Change-Id: Id21e440ea5f095b167bf3906b192021210d5cbff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2075257Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#744733}
parent 4d9a3063
...@@ -60,9 +60,9 @@ class MakeQualifiedNamesWriter(json5_generator.Writer): ...@@ -60,9 +60,9 @@ class MakeQualifiedNamesWriter(json5_generator.Writer):
def __init__(self, json5_file_paths, output_dir): def __init__(self, json5_file_paths, output_dir):
super(MakeQualifiedNamesWriter, self).__init__(None, output_dir) super(MakeQualifiedNamesWriter, self).__init__(None, output_dir)
self._input_files = copy.copy(json5_file_paths) self._input_files = copy.copy(json5_file_paths)
assert (len(json5_file_paths) <= 3, \ assert len(json5_file_paths) <= 3, \
'MakeQualifiedNamesWriter requires at most 3 in files, got %d.' % 'MakeQualifiedNamesWriter requires at most 3 in files, got %d.' % \
len(json5_file_paths)) len(json5_file_paths)
# Input files are in a strict order with more optional files *first*: # Input files are in a strict order with more optional files *first*:
# 1) ARIA properties # 1) ARIA properties
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment