Merge pull request #2963 from geoffff/master

This commit is contained in:
Justin Mayer 2023-04-20 11:41:00 +02:00 committed by GitHub
commit 86f62d0a92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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