diff options
Diffstat (limited to 'src/jinja2/utils.py')
-rw-r--r-- | src/jinja2/utils.py | 11 |
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( |