wombelix / pagure

Forked from pagure a year ago
Clone

24fe584 fix: cannot import name 'escape' from 'jinja2'

Authored and Committed by wombelix a month ago
    fix: cannot import name 'escape' from 'jinja2'
    
    jinja2.escape deprecated since Jinja Version 3.0.1, removed in Version 3.1.0.
    Has to be replaced by markupsafe.escape, added as falback in case import from jinja2 fails.
    
    https://jinja.palletsprojects.com/en/3.1.x/changes/#version-3-1-0
    https://github.com/pallets/jinja/pull/1544
    
    Fixes: https://pagure.io/pagure/issue/5350
    
        
file modified
+6 -3