From e171a16ef4099e940973fa3d1f162db209a0ec48 Mon Sep 17 00:00:00 2001 From: Vincent Cheng Date: Sun, 2 Mar 2014 22:54:50 -0800 Subject: [PATCH 1/2] Remove spurious warnings when *_SAVE_AS = False --- pelican/urlwrappers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pelican/urlwrappers.py b/pelican/urlwrappers.py index acb8e07d..90a79d60 100644 --- a/pelican/urlwrappers.py +++ b/pelican/urlwrappers.py @@ -70,7 +70,6 @@ class URLWrapper(object): setting = "%s_%s" % (self.__class__.__name__.upper(), key) value = self.settings[setting] if not isinstance(value, six.string_types): - logger.warning('%s is set to %s' % (setting, value)) return value else: if get_page_name: From e72a0a711955f2fa40c087db64f196ab9fc79fd9 Mon Sep 17 00:00:00 2001 From: Vincent Cheng Date: Sun, 16 Mar 2014 16:52:39 -0700 Subject: [PATCH 2/2] Remove unused import --- pelican/urlwrappers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pelican/urlwrappers.py b/pelican/urlwrappers.py index 90a79d60..a84cfa3c 100644 --- a/pelican/urlwrappers.py +++ b/pelican/urlwrappers.py @@ -1,13 +1,10 @@ import os import functools -import logging import six from pelican.utils import (slugify, python_2_unicode_compatible) -logger = logging.getLogger(__name__) - @python_2_unicode_compatible @functools.total_ordering