mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #21302 -- Fixed unused imports and import *.
This commit is contained in:
		| @@ -50,7 +50,7 @@ u'<html></html>' | ||||
| """ | ||||
|  | ||||
| # Template lexing symbols | ||||
| from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, | ||||
| from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,  # NOQA | ||||
|     BLOCK_TAG_START, COMMENT_TAG_END, COMMENT_TAG_START, | ||||
|     FILTER_ARGUMENT_SEPARATOR, FILTER_SEPARATOR, SINGLE_BRACE_END, | ||||
|     SINGLE_BRACE_START, TOKEN_BLOCK, TOKEN_COMMENT, TOKEN_TEXT, TOKEN_VAR, | ||||
| @@ -58,22 +58,22 @@ from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, | ||||
|     VARIABLE_TAG_END, VARIABLE_TAG_START, filter_re, tag_re) | ||||
|  | ||||
| # Exceptions | ||||
| from django.template.base import (ContextPopException, InvalidTemplateLibrary, | ||||
| from django.template.base import (ContextPopException, InvalidTemplateLibrary,  # NOQA | ||||
|     TemplateDoesNotExist, TemplateEncodingError, TemplateSyntaxError, | ||||
|     VariableDoesNotExist) | ||||
|  | ||||
| # Template parts | ||||
| from django.template.base import (Context, FilterExpression, Lexer, Node, | ||||
| from django.template.base import (Context, FilterExpression, Lexer, Node,  # NOQA | ||||
|     NodeList, Parser, RequestContext, Origin, StringOrigin, Template, | ||||
|     TextNode, Token, TokenParser, Variable, VariableNode, constant_string, | ||||
|     filter_raw_string) | ||||
|  | ||||
| # Compiling templates | ||||
| from django.template.base import (compile_string, resolve_variable, | ||||
| from django.template.base import (compile_string, resolve_variable,  # NOQA | ||||
|     unescape_string_literal, generic_tag_compiler) | ||||
|  | ||||
| # Library management | ||||
| from django.template.base import (Library, add_to_builtins, builtins, | ||||
| from django.template.base import (Library, add_to_builtins, builtins,  # NOQA | ||||
|     get_library, get_templatetags_modules, get_text_list, import_library, | ||||
|     libraries) | ||||
|  | ||||
|   | ||||
| @@ -6,7 +6,7 @@ from importlib import import_module | ||||
| from inspect import getargspec, getcallargs | ||||
|  | ||||
| from django.conf import settings | ||||
| from django.template.context import (BaseContext, Context, RequestContext, | ||||
| from django.template.context import (BaseContext, Context, RequestContext,  # NOQA: imported for backwards compatability | ||||
|     ContextPopException) | ||||
| from django.utils.itercompat import is_iterable | ||||
| from django.utils.text import (smart_split, unescape_string_literal, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user