mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
use unicode.strip instead of string.strip of the string module for metadata processors
This commit is contained in:
parent
e69b55dbcd
commit
3c37704b3b
1 changed files with 2 additions and 3 deletions
|
|
@ -11,15 +11,14 @@ try:
|
|||
except ImportError:
|
||||
Markdown = False
|
||||
import re
|
||||
import string
|
||||
|
||||
from pelican.utils import get_date, open
|
||||
|
||||
|
||||
_METADATAS_PROCESSORS = {
|
||||
'tags': lambda x: map(string.strip, x.split(',')),
|
||||
'tags': lambda x: map(unicode.strip, x.split(',')),
|
||||
'date': lambda x: get_date(x),
|
||||
'status': string.strip,
|
||||
'status': unicode.strip,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue