lmod : updated package and dependencies

This commit is contained in:
alalazo
2016-06-08 15:35:15 +02:00
parent 30e8e77fb6
commit f4a39457de
4 changed files with 69 additions and 10 deletions

View File

@@ -124,6 +124,17 @@ def __init__(self, string):
# last element of separators is ''
self.separators = tuple(re.split(segment_regex, string)[1:-1])
@property
def dotted(self):
return '.'.join(str(x) for x in self.version)
@property
def underscored(self):
return '_'.join(str(x) for x in self.version)
@property
def dashed(self):
return '-'.join(str(x) for x in self.version)
def up_to(self, index):
"""Return a version string up to the specified component, exclusive.