diff options
author | zhangguoqing <zhang.guoqing@99cloud.net> | 2016-01-04 06:01:28 +0000 |
---|---|---|
committer | zhangguoqing <zhang.guoqing@99cloud.net> | 2016-01-04 06:01:28 +0000 |
commit | 771402f2e92d9977a33a88da0ec2210365d0a16a (patch) | |
tree | 5c580536749783fe00f6ddcc224fda280b764530 | |
parent | a63ba0d5874787ef1a483f503595529f9770396a (diff) | |
download | tempest-lib-771402f2e92d9977a33a88da0ec2210365d0a16a.tar.gz |
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: I912333466ac65aa3ad06732f3a16e7130b21e282
Closes-Bug: #1530742
-rw-r--r-- | tempest_lib/cli/output_parser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tempest_lib/cli/output_parser.py b/tempest_lib/cli/output_parser.py index 668407a..cdc5852 100644 --- a/tempest_lib/cli/output_parser.py +++ b/tempest_lib/cli/output_parser.py @@ -112,9 +112,9 @@ def tables(output_lines): if label is None: label = line else: - LOG.warn('Invalid line between tables: %s' % line) + LOG.warning('Invalid line between tables: %s' % line) if len(table_) > 0: - LOG.warn('Missing end of table') + LOG.warning('Missing end of table') return tables_ @@ -140,7 +140,7 @@ def table(output_lines): columns = _table_columns(line) continue if '|' not in line: - LOG.warn('skipping invalid table line: %s' % line) + LOG.warning('skipping invalid table line: %s' % line) continue row = [] for col in columns: |