Skip to content
Snippets Groups Projects
Commit e9449926 authored by Damian Alvarez's avatar Damian Alvarez
Browse files

To work with python3

parent 05d8f664
Branches
Tags
No related merge requests found
...@@ -84,7 +84,7 @@ class FlexibleCustomHierarchicalMNS(HierarchicalMNS): ...@@ -84,7 +84,7 @@ class FlexibleCustomHierarchicalMNS(HierarchicalMNS):
comp_name, comp_ver = comp_info comp_name, comp_ver = comp_info
# Strip the irrelevant bits of the version and append the suffix again # Strip the irrelevant bits of the version and append the suffix again
if comp_relevant_versions.has_key(comp_name): if comp_name in comp_relevant_versions:
suffix = '-'.join(comp_ver.split('-')[1:]) suffix = '-'.join(comp_ver.split('-')[1:])
comp_ver = '.'.join(comp_ver.split('.')[:comp_relevant_versions[comp_name]]) comp_ver = '.'.join(comp_ver.split('.')[:comp_relevant_versions[comp_name]])
if suffix: if suffix:
...@@ -98,7 +98,7 @@ class FlexibleCustomHierarchicalMNS(HierarchicalMNS): ...@@ -98,7 +98,7 @@ class FlexibleCustomHierarchicalMNS(HierarchicalMNS):
# Find suffix, if any, to be appended. Try to be clever, since the suffix is embedded in the version # Find suffix, if any, to be appended. Try to be clever, since the suffix is embedded in the version
# and sometimes the version might include a string that looks like a suffix (ie: psmpi-5.4.0-1) # and sometimes the version might include a string that looks like a suffix (ie: psmpi-5.4.0-1)
if mpi_relevant_versions.has_key(mpi_name): if mpi_name in mpi_relevant_versions:
# Find possible suffixes # Find possible suffixes
possible_suffixes = mpi_ver.split('-')[1:] possible_suffixes = mpi_ver.split('-')[1:]
# Match the '-1' that is a typical part of psmpi's version # Match the '-1' that is a typical part of psmpi's version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment