From 180cf9165fd0f35d57c51b4cc4111f1a5a92858c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 13 Jun 2013 21:12:43 -0400 Subject: [PATCH] settings: Fix deprecation warning in configure_settings() The broken code came from my 1d4d86c (settings: Rework the LESS_GENERATOR removal warning for easy extension, 2013-03-24), where I put formatting placeholders ({}) into the warning message, but forgot to fill them in :/. --- pelican/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pelican/settings.py b/pelican/settings.py index df3ad6b6..c6cc6c3c 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -261,9 +261,10 @@ def configure_settings(settings): 'https://github.com/getpelican/pelican/blob/master/docs/settings.rst#path-metadata'), ]: if old in settings: - message = 'The {} setting has been removed in favor of {}' + message = 'The {} setting has been removed in favor of {}'.format( + old, new) if doc: - message += ', see {} for details' + message += ', see {} for details'.format(doc) logger.warning(message) return settings