From 13254797d7a4b426305eb22a67558ba4b06e1e2a Mon Sep 17 00:00:00 2001 From: dmontagu <35119617+dmontagu@users.noreply.github.com> Date: Fri, 7 Jun 2019 02:41:45 -0700 Subject: [PATCH] Update staticfiles.py Add the f for the f strings. Noticed while investigating #534 --- starlette/staticfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starlette/staticfiles.py b/starlette/staticfiles.py index 6f773d30..aab08940 100644 --- a/starlette/staticfiles.py +++ b/starlette/staticfiles.py @@ -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 -- 2.47.2