From 01f6e3e79e45208b544d5041affd83a25c7de705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 20 Mar 2013 13:57:31 +0000 Subject: [PATCH] 4687: global name 'warn' is not defined svn: r21707 --- gramps/gui/widgets/grampletpane.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/gui/widgets/grampletpane.py b/gramps/gui/widgets/grampletpane.py index c10190387..577a46aea 100644 --- a/gramps/gui/widgets/grampletpane.py +++ b/gramps/gui/widgets/grampletpane.py @@ -39,9 +39,6 @@ from gi.repository import Pango import time import os import io -from gramps.gen.constfunc import cuni -from gramps.gen.const import GRAMPS_LOCALE as glocale -_ = glocale.get_translation().gettext import sys if sys.version_info[0] < 3: import ConfigParser as configparser @@ -68,6 +65,9 @@ from ..display import display_help, display_url from ..glade import Glade from ..pluginmanager import GuiPluginManager from .undoablebuffer import UndoableBuffer +from gramps.gen.constfunc import cuni +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.get_translation().gettext #------------------------------------------------------------------------- # @@ -717,7 +717,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):