From d07c76b0ea83f9764f7eff75a818f728880e13ab Mon Sep 17 00:00:00 2001 From: zhurong Date: Tue, 22 Dec 2015 07:52:53 +0800 Subject: [PATCH] Change LOG.warn to LOG.warning Python 3 deprecated the logger.warn method, see: https://docs.python.org/3/library/logging.html#logging.warning so we prefer to use warning to avoid DeprecationWarning. Closes-Bug: #1530742 Change-Id: Ifb5fba442ccaaf065f0959b2a19b625d07ab0c47 --- muranoclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muranoclient/common/http.py b/muranoclient/common/http.py index ac5e4da9..a52ba3cc 100644 --- a/muranoclient/common/http.py +++ b/muranoclient/common/http.py @@ -48,7 +48,7 @@ def get_system_ca_file(): if os.path.exists(ca): LOG.debug("Using ca file %s", ca) return ca - LOG.warn("System ca file could not be found.") + LOG.warning("System ca file could not be found.") class HTTPClient(object):