diff options
author | Justin Mayer <entroP@gmail.com> | 2023-04-20 11:41:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 11:41:00 +0200 |
commit | 86f62d0a92ad78df36aac9f5837d4f2715535421 (patch) | |
tree | e13d593222529eb98885ec41f1ae79853e8e022a /pelican/paginator.py | |
parent | 208332c0e6441b1975ffb3a9de4137e578a1ecfd (diff) | |
parent | 8bb9e0da484cb944e216726a32e010ab59bed971 (diff) | |
download | pelican-master.tar.gz |
Diffstat (limited to 'pelican/paginator.py')
-rw-r--r-- | pelican/paginator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pelican/paginator.py b/pelican/paginator.py index 7e738fe3..4231e67b 100644 --- a/pelican/paginator.py +++ b/pelican/paginator.py @@ -155,7 +155,7 @@ class Page: # changed to lstrip() because that would remove all leading slashes and # thus make the workaround impossible. See # test_custom_pagination_pattern() for a verification of this. - if ret[0] == '/': + if ret.startswith('/'): ret = ret[1:] return ret |