The 'warn' method is deprecated, use 'warning' instead.
This commit is contained in:
committed by
Honza Král
parent
1276411cfd
commit
171755f512
@@ -32,7 +32,7 @@ def _normalize_hosts(hosts):
|
|||||||
host = host.strip('/')
|
host = host.strip('/')
|
||||||
# remove schema information
|
# remove schema information
|
||||||
if '://' in host:
|
if '://' in host:
|
||||||
logger.warn(
|
logger.warning(
|
||||||
"List of nodes should not include schema information (http://): %r.",
|
"List of nodes should not include schema information (http://): %r.",
|
||||||
host
|
host
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user