]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Prevent code formatters from moving deliberatly late import 398/head
authorTom Christie <tom@tomchristie.com>
Mon, 18 Feb 2019 13:23:33 +0000 (13:23 +0000)
committerTom Christie <tom@tomchristie.com>
Mon, 18 Feb 2019 13:23:33 +0000 (13:23 +0000)
starlette/responses.py

index 4032abd37cfaef989785bb042bd0260681b45922..7a3ff92c26421fd5123596ecd647e2c3b5ce0df4 100644 (file)
@@ -10,9 +10,6 @@ from urllib.parse import quote_plus
 
 from starlette.background import BackgroundTask
 from starlette.datastructures import URL, MutableHeaders
-# For compat with earlier versions.
-# We'll drop this with the next median release.
-from starlette.templating import _TemplateResponse as TemplateResponse
 from starlette.types import Receive, Send
 
 try:
@@ -284,3 +281,9 @@ class FileResponse(Response):
                     )
         if self.background is not None:
             await self.background()
+
+
+if True:
+    # For compat with earlier versions.
+    # We'll drop this with the next median release.
+    from starlette.templating import _TemplateResponse as TemplateResponse