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 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c26f8025910fdc2f307d8f017a6a73df4cf59d76;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