summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pyramid/static.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyramid/static.py b/src/pyramid/static.py
index e2a5e68d3..100d17676 100644
--- a/src/pyramid/static.py
+++ b/src/pyramid/static.py
@@ -138,11 +138,11 @@ class static_view:
# normalize asset spec or fs path into resource_path
if self.package_name: # package resource
- resource_path = '%s/%s' % (self.docroot.rstrip('/'), path)
+ resource_path = '{}/{}'.format(self.docroot.rstrip('/'), path)
if resource_isdir(self.package_name, resource_path):
if not request.path_url.endswith('/'):
raise self.add_slash_redirect(request)
- resource_path = '%s/%s' % (
+ resource_path = '{}/{}'.format(
resource_path.rstrip('/'),
self.index,
)