Skip to content

Commit 777bb37

Browse files
committed
Merge pull request #23 from tomgreen66/fix_rusage
Fix rusage
2 parents 7fad9cc + 6b77c74 commit 777bb37

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

drmaa/helpers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,15 @@ def attributes_iterator(attributes):
231231

232232
def adapt_rusage(rusage):
233233
"""
234-
transform a rusage data structure into a dict
234+
Transform a rusage data structure into a dict.
235+
236+
Due to the value possibly containing a equal sign make sure we
237+
limit the splits to only the first occurrence.
235238
"""
236239
rv = dict()
237240
for attr in attributes_iterator(rusage.contents):
238-
k, v = attr.split('=')
241+
242+
k, v = attr.split('=',1)
239243
rv[k] = v
240244
return rv
241245

drmaa/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
:author: Dan Blanchard (dblanchard@ets.org)
2323
'''
2424

25-
__version__ = '0.7.6'
25+
__version__ = '0.7.7'
2626
VERSION = tuple(int(x) for x in __version__.split('.'))

0 commit comments

Comments
 (0)