From 9255ab22f9985900cd4b5917f458523976ff876e Mon Sep 17 00:00:00 2001 From: derwinlu Date: Tue, 3 Nov 2015 16:53:13 +0100 Subject: [PATCH] Fix DeprecationWarning in _get_summary logging.warn is deprecated, should be replaced with .warning. --- pelican/contents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/contents.py b/pelican/contents.py index 4397d424..0123384a 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -311,8 +311,8 @@ class Content(object): def _get_summary(self): """deprecated function to access summary""" - logger.warn('_get_summary() has been deprecated since 3.6.4. ' - 'Use the summary decorator instead') + logger.warning('_get_summary() has been deprecated since 3.6.4. ' + 'Use the summary decorator instead') return self.summary @summary.setter