Changes between Initial Version and Version 1 of Ticket #6135, comment 22


Ignore:
Timestamp:
Mar 3, 2022, 2:55:22 AM (3 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6135, comment 22

    initial v1  
    1111> Also, as evidenced by those 14 years, I'm not convinced the saving is all that great:
    1212>
     13> {{{
    1314>     if autoescape:
    1415>         esc = conditional_escape
    1516>     else:
    1617>         esc = lambda x: x
     18> }}}
     19>
    1720> … 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.
    1821>
Back to Top