Barry Warsaw pushed to branch master at mailman / Mailman Core
Commits: 3a3dbeb4 by Rémy Léone at 2017-10-09T12:50:48+02:00 Warn method is deprecated - - - - - b06af6e3 by Barry Warsaw at 2017-10-12T14:00:33+00:00 Merge branch 'deprecated_warn' into 'master' Warn method is deprecated See merge request mailman/mailman!327 - - - - - 1 changed file: - src/mailman/core/initialize.py Changes: ===================================== src/mailman/core/initialize.py ===================================== --- a/src/mailman/core/initialize.py +++ b/src/mailman/core/initialize.py @@ -157,7 +157,7 @@ def initialize_2(debug=False, propagate_logs=None, testing=False): config = mailman.config.config if len(config.mailman.pre_hook) > 0: # pragma: nocover log = logging.getLogger('mailman.plugins') - log.warn( + log.warning( 'The [mailman]pre_hook configuration value has been replaced ' "by the plugins infrastructure, and won't be called.") # Run the plugin pre_hooks, if one fails, disable the offending plugin. @@ -199,7 +199,7 @@ def initialize_3(): config = mailman.config.config log = logging.getLogger('mailman.plugins') if len(config.mailman.post_hook) > 0: # pragma: nocover - log.warn( + log.warning( 'The [mailman]post_hook configuration value has been replaced ' "by the plugins infrastructure, and won't be called.") for plugin in config.plugins.values(): # pragma: nocover View it on GitLab: https://gitlab.com/mailman/mailman/compare/54ff1024a8ff32af779a2bd1085d4cd9ddd8c37e...b06af6e3968b0051faf6f9ff29ff2a39c575ec14 --- View it on GitLab: https://gitlab.com/mailman/mailman/compare/54ff1024a8ff32af779a2bd1085d4cd9ddd8c37e...b06af6e3968b0051faf6f9ff29ff2a39c575ec14 You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org