From 380665cbcd800078cf7cdd77cee2a72f41a49aed 2024-10-25 07:56:32 From: Wes Turner Date: 2024-10-25 07:56:32 Subject: [PATCH] CLN: remove self. from the _GIF1 and _GIF2 globals --- diff --git a/IPython/core/display.py b/IPython/core/display.py index d320237..add5692 100644 --- a/IPython/core/display.py +++ b/IPython/core/display.py @@ -1023,7 +1023,7 @@ class Image(DisplayObject): format = self._FMT_PNG elif data[8:12] == _WEBP: format = self._FMT_WEBP - elif data[:6] == self._GIF1 or data[:6] == self._GIF2: + elif data[:6] == _GIF1 or data[:6] == _GIF2: format = self._FMT_GIF # failed to detect format, default png