mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1856 from ingwinlu/logger_warn
Fix DeprecationWarning in _get_summary
This commit is contained in:
commit
e067e019f9
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