From 7a07dd0968ab9775e7bbfd59ff19bddcb8605af4 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 12 Dec 2017 06:48:33 +0100 Subject: Add python3 support in cli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I222fde91cf236a272176bc2d9ec6732f98b76141 Signed-off-by: Cédric Ollivier --- functest/cli/commands/cli_env.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'functest/cli/commands/cli_env.py') diff --git a/functest/cli/commands/cli_env.py b/functest/cli/commands/cli_env.py index 0e0afe52..c41f8f34 100644 --- a/functest/cli/commands/cli_env.py +++ b/functest/cli/commands/cli_env.py @@ -12,6 +12,8 @@ import prettytable from functest.utils.constants import CONST +import six + class Env(object): @@ -52,7 +54,7 @@ class CliEnv(Env): msg = prettytable.PrettyTable( header_style='upper', padding_width=5, field_names=['Functest Environment', 'value']) - for key, value in env_info.iteritems(): + for key, value in six.iteritems(env_info): if key is not None: msg.add_row([key, value]) click.echo(msg.get_string()) -- cgit 1.2.3-korg