From 6d7e21769290f174c012e0ef3b4efaa1a8d3654d 2013-12-19 17:11:49 From: Jonathan Frederic Date: 2013-12-19 17:11:49 Subject: [PATCH] Fixed typo in displaypub Regression introduced in #4229 --- diff --git a/IPython/core/displaypub.py b/IPython/core/displaypub.py index 07fae44..8052140 100644 --- a/IPython/core/displaypub.py +++ b/IPython/core/displaypub.py @@ -126,9 +126,9 @@ class CapturingDisplayPublisher(DisplayPublisher): def clear_output(self, wait=False): super(CapturingDisplayPublisher, self).clear_output(wait) - if other: - # empty the list, *do not* reassign a new list - del self.outputs[:] + + # empty the list, *do not* reassign a new list + del self.outputs[:] def publish_display_data(source, data, metadata=None):