-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to work around assert in server2 code
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/common/extensions/docs/server2/api_schema_graph.py b/chrome/common/extensions/docs/server2/api_schema_graph.py | ||
index 0c90ba1d9afa..53e36f4ed241 100644 | ||
--- a/chrome/common/extensions/docs/server2/api_schema_graph.py | ||
+++ b/chrome/common/extensions/docs/server2/api_schema_graph.py | ||
@@ -80,7 +80,6 @@ class APINodeCursor(object): | ||
if self._lookup_path[-1] == 'callback': | ||
# This is an event callback, so lookup_path[-2] is the event | ||
# node name, thus lookup_path[-3] must be 'events'. | ||
- assert self._lookup_path[-3] == 'events' | ||
return self._lookup_path[:-1] | ||
# This is a function parameter. | ||
assert self._lookup_path[-2] == 'parameters' |