summaryrefslogtreecommitdiff
path: root/src/jinja2/utils.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-10 16:12:25 -0700
committerDavid Lord <davidism@gmail.com>2021-04-10 16:12:25 -0700
commit1932ce3dc44e16394888cf04666d9b7a1795da76 (patch)
tree240f231e7ca27ae18fa35855ea3d4a4a7eddcca1 /src/jinja2/utils.py
parenta9b06f4bd271de7f56347f602dd90b41c3db8327 (diff)
downloadjinja2-inline-async.tar.gz
async support doesn't require patchinginline-async
Diffstat (limited to 'src/jinja2/utils.py')
-rw-r--r--src/jinja2/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/jinja2/utils.py b/src/jinja2/utils.py
index 80769a7..c49dbb5 100644
--- a/src/jinja2/utils.py
+++ b/src/jinja2/utils.py
@@ -20,13 +20,10 @@ if t.TYPE_CHECKING:
# special singleton representing missing values for the runtime
missing = type("MissingType", (), {"__repr__": lambda x: "missing"})()
-# internal code
internal_code: t.MutableSet[CodeType] = set()
concat = "".join
-_slash_escape = "\\/" not in json.dumps("/")
-
def pass_context(f: "F") -> "F":
"""Pass the :class:`~jinja2.runtime.Context` as the first argument
@@ -832,14 +829,6 @@ class Namespace:
return f"<Namespace {self.__attrs!r}>"
-# does this python version support async for in and async generators?
-try:
- exec("async def _():\n async for _ in ():\n yield _")
- have_async_gen = True
-except SyntaxError:
- have_async_gen = False
-
-
class Markup(markupsafe.Markup):
def __init__(self, *args, **kwargs):
warnings.warn(