Merge pull request #1856 from ingwinlu/logger_warn

Fix DeprecationWarning in _get_summary
This commit is contained in:
Justin Mayer 2015-11-03 08:08:07 -08:00
commit e067e019f9

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