From 249e0be02ae0cafc2ed704902f3095e43f26c64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baptiste=20MAR=C3=89CHAL?= Date: Mon, 17 Jul 2017 17:03:55 +0200 Subject: [PATCH] fix missing import Import the Differ class and remove the explicit call to difflib when instantiating it. --- gui/display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/display.py b/gui/display.py index 00b0cc5..cc09879 100644 --- a/gui/display.py +++ b/gui/display.py @@ -22,7 +22,7 @@ from gi.repository import Gtk, Pango import functools from gui.startup import in_gdb_thread, in_gtk_thread import gui.events -from difflib import SequenceMatcher +from difflib import SequenceMatcher, Differ # FIXME: TO DO: # * highlight the changes @@ -65,7 +65,7 @@ class DisplayWindow(gui.updatewindow.UpdateWindow): # Fall through. else: split = text.splitlines(1) - d = difflib.Differ() + d = Differ() for line in d.compare(self.last_text, split): if line[0] == ' ': self.buffer.insert(self.buffer.get_end_iter(),