From 716695139168e1b238ba82773162e4dcd7de623b Mon Sep 17 00:00:00 2001 From: uhz Date: Fri, 23 Nov 2018 15:30:26 +0100 Subject: [PATCH] Py3: Fix for './salome info -s' --- bin/salomeContext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 8e40e820a..0d65b3797 100644 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -442,12 +442,12 @@ class SalomeContext: pass if softwares: for soft in softwares: - if versions.has_key(soft.upper()): + if soft.upper() in versions: print(soft.upper().rjust(max_len), versions[soft.upper()]) else: import collections od = collections.OrderedDict(sorted(versions.items())) - for name, version in od.iteritems(): + for name, version in od.items(): print(name.rjust(max_len), versions[name]) pass -- 2.39.2