diff options
author | INADA Naoki <songofacandy@gmail.com> | 2018-02-06 21:52:57 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2018-02-06 21:52:57 +0900 |
commit | 2c49d14ceca875ae7ae6631bef5b37519137c24e (patch) | |
tree | 1cc4d8b69cb0bce36c9484d11bec84ea60fc977a /jinja2/__init__.py | |
parent | c0c3b7879e02a3b96c8319b39b11cda23cfa4b78 (diff) | |
download | jinja2-2c49d14ceca875ae7ae6631bef5b37519137c24e.tar.gz |
Lazy asyncsupport.patch_all()
fixes #765
Diffstat (limited to 'jinja2/__init__.py')
-rw-r--r-- | jinja2/__init__.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/jinja2/__init__.py b/jinja2/__init__.py index 817d4e8..f20c573 100644 --- a/jinja2/__init__.py +++ b/jinja2/__init__.py @@ -70,14 +70,3 @@ __all__ = [ 'evalcontextfilter', 'evalcontextfunction', 'make_logging_undefined', 'select_autoescape', ] - - -def _patch_async(): - from jinja2.utils import have_async_gen - if have_async_gen: - from jinja2.asyncsupport import patch_all - patch_all() - - -_patch_async() -del _patch_async |