From 171755f512022ec20cfacffa86b136784b6f67d4 Mon Sep 17 00:00:00 2001 From: Andrey Balandin Date: Thu, 21 Nov 2013 16:00:03 +0400 Subject: [PATCH] The 'warn' method is deprecated, use 'warning' instead. --- elasticsearch/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index bf840693..abc9cd8c 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -32,7 +32,7 @@ def _normalize_hosts(hosts): host = host.strip('/') # remove schema information if '://' in host: - logger.warn( + logger.warning( "List of nodes should not include schema information (http://): %r.", host )