We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7fad9cc + 6b77c74 commit 777bb37Copy full SHA for 777bb37
2 files changed
drmaa/helpers.py
@@ -231,11 +231,15 @@ def attributes_iterator(attributes):
231
232
def adapt_rusage(rusage):
233
"""
234
- transform a rusage data structure into a dict
+ 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.
238
239
rv = dict()
240
for attr in attributes_iterator(rusage.contents):
- k, v = attr.split('=')
241
242
+ k, v = attr.split('=',1)
243
rv[k] = v
244
return rv
245
drmaa/version.py
@@ -22,5 +22,5 @@
22
:author: Dan Blanchard (dblanchard@ets.org)
23
'''
24
25
-__version__ = '0.7.6'
+__version__ = '0.7.7'
26
VERSION = tuple(int(x) for x in __version__.split('.'))
0 commit comments