use unicode.strip instead of string.strip of the string module for metadata processors

This commit is contained in:
Ronny Pfannschmidt 2011-05-06 19:26:25 +02:00
commit 3c37704b3b

View file

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