Skip to content
Myr

Remove unused/duplicate imports

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Adrian Moennich · committed by Adrian Moennich · parent 462b786 · Browse files · 7 files+3 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+3 added−13 removed

  • tests:+0 added−9 removed
  • other:+3 added−4 removed

7 files+3 added−13 removed

modified:jinja2/asyncsupport.py+1 added-1 removed
12 unmodified lines
13import asyncio14import inspect15from functools import update_wrapper1617from jinja2.utils import concat, internalcode, concat, Markup17from jinja2.utils import concat, internalcode, Markup18from jinja2.environment import TemplateModule19from jinja2.runtime import LoopContextBase, _last_iteration2021
216 unmodified lines
modified:jinja2/lexer.py+1 added-2 removed
18 unmodified lines
19from operator import itemgetter20from collections import deque21from jinja2.exceptions import TemplateSyntaxError22from jinja2.utils import LRUCache23from jinja2._compat import iteritems, implements_iterator, text_type, \24 intern, PY223from jinja2._compat import iteritems, implements_iterator, text_type, intern242526# cache for the lexers. Exists in order to be able to have multiple27# environments with the same lexer
697 unmodified lines
modified:jinja2/sandbox.py+1 added-1 removed
15 unmodified lines
16import operator17from collections import Mapping18from jinja2.environment import Environment19from jinja2.exceptions import SecurityError20from jinja2._compat import string_types, text_type, PY220from jinja2._compat import string_types, PY221from jinja2.utils import Markup2223from markupsafe import EscapeFormatter24from string import Formatter
451 unmodified lines
modified:tests/conftest.py-4 removed
8 unmodified lines
9 :license: BSD, see LICENSE for more details.10"""11import pytest12import os13import re14import sys1316from traceback import format_exception14from jinja2 import loaders18from jinja2._compat import PY215from jinja2.utils import have_async_gen16from jinja2 import Environment1718
59 unmodified lines
modified:tests/test_async.py-1 removed
1import pytest2import asyncio34from jinja2 import Template, Environment, DictLoader5from jinja2.utils import have_async_gen5from jinja2.exceptions import TemplateNotFound, TemplatesNotFound, \6 UndefinedError78
409 unmodified lines
modified:tests/test_debug.py-2 removed
9 unmodified lines
10"""11import pytest1213import re1414import sys15from traceback import format_exception1617from jinja2 import Environment, TemplateSyntaxError19from traceback import format_exception181920@pytest.fixture21def fs_env(filesystem_loader):
63 unmodified lines
modified:tests/test_idtracking.py-2 removed
1import pytest21from jinja2 import nodes2from jinja2.idtracking import symbols_for_node34
212 unmodified lines