Skip to content

Commit cc4c418

Browse files
committed
changing __pretty__ to _repr_pretty_
1 parent 1794004 commit cc4c418

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nipype/interfaces/base/support.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,8 @@ def _get_bunch_hash(self):
168168
sorted_dict = to_str(sorted(dict_nofilename.items()))
169169
return dict_withhash, md5(sorted_dict.encode()).hexdigest()
170170

171-
def __pretty__(self, p, cycle):
172-
"""Support for the pretty module
173-
174-
pretty is included in ipython.externals for ipython > 0.10"""
171+
def _repr_pretty_(self, p, cycle):
172+
"""Support for the pretty module from ipython.externals"""
175173
if cycle:
176174
p.text('Bunch(...)')
177175
else:

0 commit comments

Comments
 (0)