The 'warn' method is deprecated, use 'warning' instead.

This commit is contained in:
Andrey Balandin
2014-01-30 11:56:32 +01:00
committed by Honza Král
parent 1276411cfd
commit 171755f512
+1 -1
View File
@@ -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
)