diff options
| author | Michael Merickel <michael@merickel.org> | 2015-12-07 23:21:22 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2015-12-07 23:21:22 -0600 |
| commit | 54d00fd7ff0fcfd19799cbffedb860d08604b83c (patch) | |
| tree | 6b93d1c61d43c280a1063ef327536287767f2047 | |
| parent | 73630eae045549b792c4e3ef77920357f89c6874 (diff) | |
| download | pyramid-54d00fd7ff0fcfd19799cbffedb860d08604b83c.tar.gz pyramid-54d00fd7ff0fcfd19799cbffedb860d08604b83c.tar.bz2 pyramid-54d00fd7ff0fcfd19799cbffedb860d08604b83c.zip | |
support os.sep on windows
| -rw-r--r-- | pyramid/config/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pyramid/config/views.py b/pyramid/config/views.py index 16b150a9e..304ce2d43 100644 --- a/pyramid/config/views.py +++ b/pyramid/config/views.py @@ -2132,7 +2132,11 @@ class StaticURLInfo(object): for base_spec, cachebust in reversed(self.cache_busters): if ( base_spec == rawspec or - (base_spec.endswith('/') and rawspec.startswith(base_spec)) + ( + base_spec.endswith(os.sep) + if os.path.isabs(base_spec) + else base_spec.endswith('/') + ) and rawspec.startswith(base_spec) ): subpath, kw = cachebust(absspec, subpath, kw) break |
