0002512: [Python 2.6 support] Change sets module by built-in set types

patch Josip


svn: r11410
This commit is contained in:
Benny Malengier 2008-12-04 14:12:49 +00:00
parent 08fa85ac02
commit 2529ba1e21

View File

@ -27,10 +27,13 @@
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import os import os
import sys import sys
import sets
from xml.parsers.expat import ExpatError, ParserCreate from xml.parsers.expat import ExpatError, ParserCreate
from gettext import gettext as _ from gettext import gettext as _
import re import re
try:
set()
except NameError:
from sets import Set as set
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -353,7 +356,7 @@ class GrampsParser(UpdateCallback):
self.childref_map = {} self.childref_map = {}
self.change = change self.change = change
self.dp = DateHandler.parser self.dp = DateHandler.parser
self.place_names = sets.Set() self.place_names = set()
self.info = ImportInfo() self.info = ImportInfo()
self.all_abs = True self.all_abs = True
cursor = database.get_place_cursor() cursor = database.get_place_cursor()