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
This commit is contained in:
zhurong 2015-12-22 07:52:53 +08:00
parent 4e3bc8ead7
commit d07c76b0ea
1 changed files with 1 additions and 1 deletions

View File

@ -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):