Changeset 2509:338e6456727b in livinglogic.python.xist

Show
Ignore:
Timestamp:
04/26/06 16:46:43 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use new IPython feature (from r1274).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _xist/presenters.py

    r2508 r2509  
    957957    def displayhook(self, obj): 
    958958        if isinstance(obj, xsc.Node) and defaultpresenter is not None: 
    959             (defaultpresenter(obj) | ipipe.defaultdisplay).display() 
    960         raise ipapi.TryNext 
     959            obj = defaultpresenter(obj) 
     960        raise ipapi.TryNext(obj) 
    961961    api.set_hook("result_display", displayhook)