Changes between Initial Version and Version 1 of Ticket #6135, comment 22
- Timestamp:
- Mar 3, 2022, 2:55:22 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6135, comment 22
initial v1 11 11 > Also, as evidenced by those 14 years, I'm not convinced the saving is all that great: 12 12 > 13 > {{{ 13 14 > if autoescape: 14 15 > esc = conditional_escape 15 16 > else: 16 17 > esc = lambda x: x 18 > }}} 19 > 17 20 > … OK, yes. It's slightly repetitive. If it really bothered me I could write a make_escape() factory function to remove the duplication. But, on the other hand, it's clear: there's no question of what the behaviour is, and I don't have to go looking into the source to see how the parameters get applied. 18 21 >