Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions drmaa/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,15 @@ def attributes_iterator(attributes):

def adapt_rusage(rusage):
"""
transform a rusage data structure into a dict
Transform a rusage data structure into a dict.

Due to the value possibly containing a equal sign make sure we
limit the splits to only the first occurrence.
"""
rv = dict()
for attr in attributes_iterator(rusage.contents):
k, v = attr.split('=')

k, v = attr.split('=',1)
rv[k] = v
return rv

Expand Down
2 changes: 1 addition & 1 deletion drmaa/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
:author: Dan Blanchard ([email protected])
'''

__version__ = '0.7.6'
__version__ = '0.7.7'
VERSION = tuple(int(x) for x in __version__.split('.'))