Fix DeprecationWarning in _get_summary

logging.warn is deprecated, should be replaced with .warning.
This commit is contained in:
derwinlu 2015-11-03 16:53:13 +01:00
commit 9255ab22f9

View file

@ -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