From: dmontagu <35119617+dmontagu@users.noreply.github.com> Date: Fri, 7 Jun 2019 09:41:45 +0000 (-0700) Subject: Update staticfiles.py X-Git-Tag: 0.12.3~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F535%2Fhead;p=thirdparty%2Fstarlette.git Update staticfiles.py Add the f for the f strings. Noticed while investigating #534 --- 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