Remove unneeded str conversion

svn: r4003
This commit is contained in:
Alex Roitman 2005-01-31 02:20:40 +00:00
parent 52e5137188
commit 07f0746473

View File

@ -20,8 +20,7 @@
# $Id$ # $Id$
# Written by Alex Roitman, # Written by Alex Roitman
# largely based on WriteXML by Don Allingham
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -61,25 +60,25 @@ def exportData(database, filename, person=None, callback=None):
# copy all data from new_database to database, # copy all data from new_database to database,
for handle in database.person_map.keys(): for handle in database.person_map.keys():
new_database.person_map.put(str(handle), new_database.person_map.put(handle,
database.person_map.get(str(handle))) database.person_map.get(handle))
for handle in database.family_map.keys(): for handle in database.family_map.keys():
new_database.family_map.put(str(handle), new_database.family_map.put(handle,
database.family_map.get(str(handle))) database.family_map.get(handle))
for handle in database.place_map.keys(): for handle in database.place_map.keys():
new_database.place_map.put(str(handle), new_database.place_map.put(handle,
database.place_map.get(str(handle))) database.place_map.get(handle))
for handle in database.source_map.keys(): for handle in database.source_map.keys():
new_database.source_map.put(str(handle), new_database.source_map.put(handle,
database.source_map.get(str(handle))) database.source_map.get(handle))
for handle in database.media_map.keys(): for handle in database.media_map.keys():
new_database.media_map.put(str(handle), new_database.media_map.put(handle,
database.media_map.get(str(handle))) database.media_map.get(handle))
for handle in database.event_map.keys(): for handle in database.event_map.keys():
new_database.event_map.put(str(handle), new_database.event_map.put(handle,
database.event_map.get(str(handle))) database.event_map.get(handle))
for handle in database.metadata.keys(): for handle in database.metadata.keys():
new_database.metadata.put(str(handle), new_database.metadata.put(handle,
database.metadata.get(str(handle))) database.metadata.get(handle))
new_database.close() new_database.close()