Skip to content

Commit dd6351a

Browse files
committed
stop using Bunch in repr of InterfaceRuntime
1 parent 21555f0 commit dd6351a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/base/support.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class InterfaceRuntime(object):
5656
>>> pickleds = pickle.dumps(rt)
5757
>>> newrt = pickle.loads(pickleds)
5858
>>> newrt
59-
Bunch(cmdline='/bin/echo', cwd='/scratch/workflow', returncode=0)
59+
InterfaceRuntime(cmdline='/bin/echo', cwd='/scratch/workflow', returncode=0)
6060
6161
Runtime objects can be compared
6262
@@ -152,7 +152,7 @@ def items(self):
152152

153153
def __repr__(self):
154154
"""representation of the runtime object"""
155-
return _repr_formatter(self)
155+
return _repr_formatter(self, self.__class__.__name__)
156156

157157
# Enable when Python 2 support is dropped
158158
# def __str__(self):
@@ -206,7 +206,7 @@ class InterfaceResult(object):
206206
>>> newresult = pickle.loads(pickleds)
207207
>>> newresult # doctest: +ELLIPSIS
208208
InterfaceResult(interface='CommandLine', runtime=\
209-
Bunch(cmdline='/bin/echo', returncode=0), version=...)
209+
InterfaceRuntime(cmdline='/bin/echo', returncode=0), version=...)
210210
211211
"""
212212
__slots__ = ['interface', 'runtime', 'inputs', 'outputs', 'provenance']

0 commit comments

Comments
 (0)