Skip to content
Myr

Remove unused imports

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

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent d77a031 · Browse files · 10 files+8 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

10 files+8 added−13 removed

  • other:+8 added−13 removed

10 files+8 added−13 removed

modified:jinja2/_markupsafe/__init__.py-1 removed
9 unmodified lines
10"""11import re12import six13from six.moves import map14from six.moves import zip14try:15 unichr = unichr # py216except NameError:17 unichr = chr # py3
204 unmodified lines
modified:jinja2/testsuite/debug.py-1 removed
6 unmodified lines
78 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import sys11import unittest1213from jinja2.testsuite import JinjaTestCase, filesystem_loader14
44 unmodified lines
modified:jinja2/testsuite/filters.py+1 added-1 removed
11 unmodified lines
12from jinja2.testsuite import JinjaTestCase1314from jinja2 import Markup, Environment15import six16from six.moves import map, zip16from six.moves import map1718env = Environment()1920
379 unmodified lines
modified:jinja2/testsuite/regression.py-2 removed
13 unmodified lines
1415from jinja2 import Template, Environment, DictLoader, TemplateSyntaxError, \16 TemplateNotFound, PrefixLoader17import six18from six.moves import map19from six.moves import zip1819env = Environment()2021
235 unmodified lines
modified:jinja2/exceptions.py+1 added-1 removed
7 unmodified lines
8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import six12from six.moves import map, zip12from six.moves import map131415class TemplateError(Exception):16 """Baseclass for all template errors."""
126 unmodified lines
modified:jinja2/ext.py+1 added-2 removed
8 unmodified lines
910 :copyright: (c) 2010 by the Jinja Team.11 :license: BSD.12"""13from collections import deque13from jinja2 import nodes14from jinja2.defaults import *15from jinja2.environment import Environment17from jinja2.runtime import Undefined, concat16from jinja2.runtime import concat17from jinja2.exceptions import TemplateAssertionError, TemplateSyntaxError18from jinja2.utils import contextfunction, import_string, Markup19import six20
600 unmodified lines
modified:jinja2/filters.py+1 added-1 removed
16 unmodified lines
17 unicode_urlencode18from jinja2.runtime import Undefined19from jinja2.exceptions import FilterArgumentError20import six21from six.moves import map, zip21from six.moves import map222324_word_re = re.compile(r'\w+(?u)')25
806 unmodified lines
modified:jinja2/loaders.py+1 added-1 removed
17 unmodified lines
18 from hashlib import sha119except ImportError:20 from sha import new as sha121from jinja2.exceptions import TemplateNotFound22from jinja2.utils import LRUCache, open_if_exists, internalcode22from jinja2.utils import open_if_exists, internalcode232425def split_template_path(template):26 """Split a path into segments and perform a sanity check. If it detects
448 unmodified lines
modified:jinja2/parser.py+1 added-1 removed
10 unmodified lines
11from jinja2 import nodes12from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError13from jinja2.lexer import describe_token, describe_token_expr14import six15from six.moves import map, zip15from six.moves import map161718#: statements that callinto 19_statement_keywords = frozenset(['for', 'if', 'block', 'extends', 'print',
877 unmodified lines
modified:jinja2/runtime.py+2 added-2 removed
8 unmodified lines
9 :license: BSD.10"""11from itertools import chain12from jinja2.nodes import EvalContext, _context_function_types13from jinja2.utils import Markup, partial, soft_unicode, escape, missing, \14 concat, internalcode, object_type_repr13from jinja2.utils import Markup, soft_unicode, escape, missing, concat, \14 internalcode, object_type_repr15from jinja2.exceptions import UndefinedError, TemplateRuntimeError, \16 TemplateNotFound17import six18from six.moves import map
549 unmodified lines