From 3c37704b3b819bee5d441c75a6fd59a64279a0e8 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Fri, 6 May 2011 19:26:25 +0200 Subject: [PATCH] use unicode.strip instead of string.strip of the string module for metadata processors --- pelican/readers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pelican/readers.py b/pelican/readers.py index 6cadcd4d..c69e156e 100644 --- a/pelican/readers.py +++ b/pelican/readers.py @@ -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, }