]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Py3: Fix for './salome info -s' uhz/V9_2_BR_fix_for_salome_info V9_2_0 V9_2_0rc2
authoruhz <ulysse.humbert-gonzalez@opencascade.com>
Fri, 23 Nov 2018 14:30:26 +0000 (15:30 +0100)
committeruhz <ulysse.humbert-gonzalez@opencascade.com>
Fri, 23 Nov 2018 14:31:26 +0000 (15:31 +0100)
bin/salomeContext.py

index 8e40e820ae49c19febfd0cd198d75ab059b0fd3a..0d65b379716650abefb1879ed79baa32c02d5b46 100644 (file)
@@ -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