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.

Change-Id: Id0c5d67a763121c3245316955c4901a0dbea73ad
Closes-Bug: #1530742
This commit is contained in:
zhangguoqing 2016-01-04 05:25:40 +00:00
parent 3eb8c2403a
commit b65817fa43
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def get_system_ca_file():
if os.path.exists(ca):
LOG.debug("Using ca file %s", ca)
return ca
LOG.warn(_LW("System ca file could not be found."))
LOG.warning(_LW("System ca file could not be found."))
class HTTPClient(object):