]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Update staticfiles.py 535/head
authordmontagu <35119617+dmontagu@users.noreply.github.com>
Fri, 7 Jun 2019 09:41:45 +0000 (02:41 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2019 09:41:45 +0000 (02:41 -0700)
Add the f for the f strings.

Noticed while investigating #534

starlette/staticfiles.py

index 6f773d30566a3d7ee643f30209bbfb08b47f20e8..aab089404c1199b0bc3fc2c1fb1111854d23de56 100644 (file)
@@ -70,11 +70,11 @@ class StaticFiles:
             assert spec is not None, f"Package {package!r} could not be found."
             assert (
                 spec.origin is not None
-            ), "Directory 'statics' in package {package!r} could not be found."
+            ), f"Directory 'statics' in package {package!r} could not be found."
             directory = os.path.normpath(os.path.join(spec.origin, "..", "statics"))
             assert os.path.isdir(
                 directory
-            ), "Directory 'statics' in package {package!r} could not be found."
+            ), f"Directory 'statics' in package {package!r} could not be found."
             directories.append(directory)
 
         return directories