From: uhz Date: Fri, 23 Nov 2018 14:30:26 +0000 (+0100) Subject: Py3: Fix for './salome info -s' X-Git-Tag: V9_2_0rc2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fuhz%2FV9_2_BR_fix_for_salome_info;p=modules%2Fkernel.git Py3: Fix for './salome info -s' --- 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