From 667cd1eb48b6e77b9784c7562621311780d5ffdc Mon Sep 17 00:00:00 2001 From: Fedor Brunner Date: Tue, 18 Feb 2014 09:39:48 +0100 Subject: [PATCH] Replace the obsolete method warn. http://docs.python.org/3/library/logging.html Note: There is an obsolete method warn which is functionally identical to warning. As warn is deprecated, please do not use it - use warning instead. --- src/common/connection_handlers_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index 8945c92d0..433ab9ec7 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -1207,7 +1207,7 @@ class GcInvitationReceivedEvent(nec.NetworkIncomingEvent): try: self.room_jid = helpers.parse_jid(invite_tag.getAttr('jid')) except helpers.InvalidFormat: - log.warn('Invalid JID: %s, ignoring it' % invite_tag.getAttr( + log.warning('Invalid JID: %s, ignoring it' % invite_tag.getAttr( 'jid')) return self.jid_from = self.msg_obj.fjid