зеркало из https://github.com/mozilla/gecko-dev.git
66f8fa7381
As discussion in IRC with @nox and @gootorov , it's more correct to use Python's `True` for `${arbitrary Python code}` in mako. Following is related IRC logs ``` 15:39 nox As I said, that's because there are 2 ways to invoke the things with Mako. 15:40 nox ${arbitrary Python code} vs <%named_helper ..>...</%named_helper> 15:40 nox IIRC <%foo bar=True></%foo> is not valid Mako syntax, 15:40 nox but with bar="True" it is. 15:42 cybai gootorov: I did meet some issues when moving makos if I set "True" instead of Python's `True`. Thus, like nox mentioned above, it's related to how the code works 15:44 gootorov nox: Alright, I got it now, thanks. There are a couple ${function} blocks that still use `boxed="True" though. They aren't <%named_helpers>, shouldn't they use Python's True too, then? 15:45 nox gootorov: I think there is an issue because this specific attribute is also used as a string through other <%helpers>, 15:46 nox gootorov: Seems like it's not an issue anymore because the boxed attribute is passed to arg_to_bool, 15:46 nox which either returns the boolean as is or check whether it's a "True" or "False" string. 15:47 nox gootorov: So indeed, you can probably make those use booleans now. 15:47 gootorov nox: Okay, got it, thanks for the explanation :) ``` --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests Source-Repo: https://github.com/servo/servo Source-Revision: 865181b6e676fc9b76447ad5172e275b9861ca5e --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 38ac407acec755822447200ce8b056c90ba5ceb1 |
||
---|---|---|
.. | ||
allocator | ||
atoms | ||
bluetooth | ||
bluetooth_traits | ||
canvas | ||
canvas_traits | ||
compositing | ||
config | ||
constellation | ||
debugger | ||
deny_public_fields | ||
devtools | ||
devtools_traits | ||
dom_struct | ||
domobject_derive | ||
fallible | ||
geometry | ||
gfx | ||
gfx_traits | ||
hashglobe | ||
jstraceable_derive | ||
layout | ||
layout_thread | ||
layout_traits | ||
malloc_size_of | ||
malloc_size_of_derive | ||
metrics | ||
msg | ||
net | ||
net_traits | ||
nonzero | ||
profile | ||
profile_traits | ||
rand | ||
range | ||
remutex | ||
script | ||
script_layout_interface | ||
script_plugins | ||
script_traits | ||
selectors | ||
servo | ||
servo_arc | ||
size_of_test | ||
style | ||
style_derive | ||
style_traits | ||
url | ||
webdriver_server | ||
webvr | ||
webvr_traits |