sripathikrishnan / jinjasql

Template Language for SQL with Automatic Bind Parameter Extraction
MIT License
807 stars 88 forks source link

DeprecationWarning: The 'autoescape' extension is deprecated and will be removed in Jinja 3.1 #44

Open williamabreu opened 2 years ago

williamabreu commented 2 years ago

After run a test suite in my project, I got the following warning:

DeprecationWarning: The 'autoescape' extension is deprecated and will be removed in Jinja 3.1. This is built in now.

Looking in the Jinja documentation (changelog), I confirmed the message. So, I believe the self.env.add_extension('jinja2.ext.autoescape') in the _prepare_environment method (on core.py file) isn't necessary and should be removed.