4687: global name 'warn' is not defined
svn: r21707
This commit is contained in:
parent
3eed3217f4
commit
01f6e3e79e
@ -39,9 +39,6 @@ from gi.repository import Pango
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
from gramps.gen.constfunc import cuni
|
|
||||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
|
||||||
_ = glocale.get_translation().gettext
|
|
||||||
import sys
|
import sys
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
import ConfigParser as configparser
|
import ConfigParser as configparser
|
||||||
@ -68,6 +65,9 @@ from ..display import display_help, display_url
|
|||||||
from ..glade import Glade
|
from ..glade import Glade
|
||||||
from ..pluginmanager import GuiPluginManager
|
from ..pluginmanager import GuiPluginManager
|
||||||
from .undoablebuffer import UndoableBuffer
|
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)
|
handle)
|
||||||
return True
|
return True
|
||||||
else: # overzealous l10n while setting the link?
|
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
|
return False # did not handle event
|
||||||
|
|
||||||
def set_has_data(self, value):
|
def set_has_data(self, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user