diff options
| author | Tres Seaver <tseaver@palladion.com> | 2023-08-21 14:53:38 -0400 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2023-08-21 14:53:38 -0400 |
| commit | 021eb504a7d3d2aeeb0781a5f89a5467f90b13da (patch) | |
| tree | 6ef989d4a5bd443e898fb6393bf41ab3d9cf166c /src | |
| parent | d1dc3789e30c5ffa3e75df39033b9bd9752aebd5 (diff) | |
| download | pyramid-021eb504a7d3d2aeeb0781a5f89a5467f90b13da.tar.gz pyramid-021eb504a7d3d2aeeb0781a5f89a5467f90b13da.tar.bz2 pyramid-021eb504a7d3d2aeeb0781a5f89a5467f90b13da.zip | |
chore: back out unintended change
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/static.py | 4 |
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, ) |
