From 5001870f8da3ae75f04eda5658f8a367d92af4db Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 12 Oct 2011 23:10:41 +0000 Subject: [PATCH] Python 2.6.4 could not deepcopy the name_display svn: r18306 --- src/plugins/textreport/DetAncestralReport.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/textreport/DetAncestralReport.py b/src/plugins/textreport/DetAncestralReport.py index 5bf3d9a5d..28832a312 100644 --- a/src/plugins/textreport/DetAncestralReport.py +++ b/src/plugins/textreport/DetAncestralReport.py @@ -34,6 +34,7 @@ # #------------------------------------------------------------------------ import copy +import sys from gen.ggettext import gettext as _ #------------------------------------------------------------------------ @@ -140,7 +141,12 @@ class DetAncestorReport(Report): # Copy the global NameDisplay so that we don't change application # defaults. - self._name_display = copy.deepcopy(global_name_display) + try: + self._name_display = copy.deepcopy(global_name_display) + except: + print >> sys.stderr, "WARNING: unable to deepcopy name_display; continuing..." + self._name_display = global_name_display + name_format = menu.get_option_by_name("name_format").get_value() if name_format != 0: self._name_display.set_default_format(name_format)