diff --git a/IPython/Extensions/ipipe.py b/IPython/Extensions/ipipe.py index e49f00f..728bc5c 100644 --- a/IPython/Extensions/ipipe.py +++ b/IPython/Extensions/ipipe.py @@ -1180,7 +1180,7 @@ def xrepr_ifile(self, mode="default"): except IOError: name = "ifile" style = astyle.style_default - if mode == "cell" or mode in "header" or mode == "footer": + if mode in ("cell", "header", "footer"): abspath = repr(path._base(self.normpath())) if abspath.startswith("u"): abspath = abspath[2:-1] diff --git a/doc/ChangeLog b/doc/ChangeLog index 4731698..b22f37c 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2007-05-17 Walter Doerwald + + * IPython/Extensions/ipipe.py: Fix xrepr for ifiles. + (Bug detected by Paul Mueller). + 2007-05-16 Ville Vainio * ipy_profile_sci.py, ipython_win_post_install.py: Create