-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup bootstrap (uplift to 1.61.x) (#21564)
* Uplift of #17179 (squashed) to release * Fix pylint issues.
- Loading branch information
Showing
10 changed files
with
125 additions
and
318 deletions.
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
17 changes: 17 additions & 0 deletions
17
patches/mojo-public-tools-bindings-generators-mojom_ts_generator.py.patch
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,17 @@ | ||
diff --git a/mojo/public/tools/bindings/generators/mojom_ts_generator.py b/mojo/public/tools/bindings/generators/mojom_ts_generator.py | ||
index d8e0cf30486690b5aa33906985642dc8f7f762f5..1c43796152811d020370aa0a42bc4fddf8b05c06 100644 | ||
--- a/mojo/public/tools/bindings/generators/mojom_ts_generator.py | ||
+++ b/mojo/public/tools/bindings/generators/mojom_ts_generator.py | ||
@@ -175,8 +175,10 @@ def _GetWebUiModulePath(module): | ||
path. Otherwise, returned paths always end in a '/' and begin with either | ||
`chrome://resources/` or a '/'.""" | ||
path = module.metadata.get('webui_module_path') | ||
- if path is None or path == '/': | ||
- return path | ||
+ if path is None: | ||
+ return None | ||
+ if path == '' or path == '/': | ||
+ return '/' | ||
if _IsAbsoluteChromeResourcesPath(path): | ||
return path.rstrip('/') + '/' | ||
return '/{}/'.format(path.strip('/')) |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.