mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Sorted imports in __init__.py files.
This commit is contained in:
@@ -42,10 +42,8 @@ Shared:
|
||||
# Multiple Template Engines
|
||||
|
||||
from .engine import Engine
|
||||
|
||||
from .utils import EngineHandler
|
||||
|
||||
|
||||
engines = EngineHandler()
|
||||
|
||||
__all__ = ('Engine', 'engines')
|
||||
@@ -54,19 +52,20 @@ __all__ = ('Engine', 'engines')
|
||||
# Django Template Language
|
||||
|
||||
# Public exceptions
|
||||
from .base import VariableDoesNotExist # NOQA
|
||||
from .context import ContextPopException # NOQA
|
||||
from .exceptions import TemplateDoesNotExist, TemplateSyntaxError # NOQA
|
||||
from .base import VariableDoesNotExist # NOQA isort:skip
|
||||
from .context import ContextPopException # NOQA isort:skip
|
||||
from .exceptions import TemplateDoesNotExist, TemplateSyntaxError # NOQA isort:skip
|
||||
|
||||
# Template parts
|
||||
from .base import (Context, Node, NodeList, Origin, RequestContext, # NOQA
|
||||
Template, Variable)
|
||||
from .base import ( # NOQA isort:skip
|
||||
Context, Node, NodeList, Origin, RequestContext, Template, Variable,
|
||||
)
|
||||
|
||||
# Deprecated in Django 1.8, will be removed in Django 1.10.
|
||||
from .base import resolve_variable # NOQA
|
||||
from .base import resolve_variable # NOQA isort:skip
|
||||
|
||||
# Library management
|
||||
from .library import Library # NOQA
|
||||
from .library import Library # NOQA isort:skip
|
||||
|
||||
|
||||
__all__ += ('Template', 'Context', 'RequestContext')
|
||||
|
||||
Reference in New Issue
Block a user