mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix DeprecationWarning in _get_summary
logging.warn is deprecated, should be replaced with .warning.
This commit is contained in:
parent
880ba20a98
commit
9255ab22f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue