1
0
Fork 0
forked from github/pelican

Bug #1493 — Memoize slugify when possible

This commit is contained in:
Alexis Métaireau 2014-10-09 11:27:53 +02:00
commit e39dc95c3b
3 changed files with 4 additions and 2 deletions

View file

@ -239,7 +239,7 @@ def pelican_open(filename):
content = content[1:]
yield content
@memoized
def slugify(value, substitutions=()):
"""
Normalizes string, converts to lowercase, removes non-alpha characters,