From f7594912792d6fdbf80c615261fc9371b53c54f0 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 19 May 2011 18:00:17 +0100 Subject: [PATCH] Oops. This is it. See #115. --- pelican/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/settings.py b/pelican/settings.py index e5afa63d..eea1ae0b 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -56,8 +56,8 @@ def read_settings(filename): # if locales is not a list, make it one locales = context['LOCALE'] - if type(locales) is str: - locales = [str] + if isinstance(locales, basestring): + locales = [locales] # try to set the different locales, fallback on the default. for locale_ in context['LOCALE']: