From f0f3a5b0378f5c7cf5dfed03054f5ceb99025fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 20 Mar 2013 13:59:53 +0000 Subject: [PATCH] 4687: global name 'warn' is not defined svn: r21708 --- src/gui/widgets/grampletpane.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index 27506c226..a9ea488c3 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -34,7 +34,7 @@ import gtk import pango import time import os -from gen.ggettext import gettext as _ +import logging #------------------------------------------------------------------------- # @@ -52,6 +52,7 @@ import GrampsDisplay from glade import Glade from gui.pluginmanager import GuiPluginManager from gui.widgets.undoablebuffer import UndoableBuffer +from gen.ggettext import gettext as _ #------------------------------------------------------------------------- # @@ -691,7 +692,7 @@ class GuiGramplet(object): handle) return True else: # overzealous l10n while setting the link? - warn( "Unknown link type " + link_type, RuntimeWarning, 2) + logging.warning( "Unknown link type " + link_type, RuntimeWarning, 2) return False # did not handle event def set_has_data(self, value):