From 4b4ff7e0ac9975cbf1d0a3909458c400ae7fcf09 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 21 May 2006 20:48:50 +0000 Subject: [PATCH] * src/GrampsDb/_GrampsBSDDB.py: Do not import unused module. Do not import unused module. svn: r6738 --- gramps2/ChangeLog | 2 ++ gramps2/src/GrampsDb/_GrampsBSDDB.py | 3 +-- gramps2/src/GrampsDb/_GrampsInMemDB.py | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 84ac3f60e..51d591835 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -2,6 +2,7 @@ * src/plugins/GraphViz.py.in: fix file open. 2006-05-21 Alex Roitman + * src/GrampsDb/_GrampsBSDDB.py: Do not import unused module. * src/const.py.in: Use gettext. * src/GrampsDb/_ConstXML.py: Remove file. * src/DisplayTabs/_PersonEventEmbedList.py @@ -12,6 +13,7 @@ (EditPersonEvent.get_custom_events): Use correct method. * src/GrampsDb/_GrampsDbBase.py: Remove obsolete methods. * src/GrampsDb/_GrampsInMemDB.py: Remove obsolete methods. + Do not import unused module. 2006-05-20 Don Allingham * src/Editors/_EditPlace.py: custom menus diff --git a/gramps2/src/GrampsDb/_GrampsBSDDB.py b/gramps2/src/GrampsDb/_GrampsBSDDB.py index ff0721c8b..c827345de 100644 --- a/gramps2/src/GrampsDb/_GrampsBSDDB.py +++ b/gramps2/src/GrampsDb/_GrampsBSDDB.py @@ -33,7 +33,6 @@ import cPickle as pickle import os import time import locale -import sets from gettext import gettext as _ from bsddb import dbshelve, db import logging @@ -1679,7 +1678,7 @@ def _table_low_level_9(env,table): handle_list = table.keys() length = len(handle_list) - dup_handles = sets.Set( + dup_handles = set( [ handle for handle in handle_list if handle_list.count(handle) > 1 ] ) diff --git a/gramps2/src/GrampsDb/_GrampsInMemDB.py b/gramps2/src/GrampsDb/_GrampsInMemDB.py index 806946c37..74181a05a 100644 --- a/gramps2/src/GrampsDb/_GrampsInMemDB.py +++ b/gramps2/src/GrampsDb/_GrampsInMemDB.py @@ -30,7 +30,6 @@ must hold all of their data in memory. # Python modules # #------------------------------------------------------------------------- -import sets import time #-------------------------------------------------------------------------