From f1ac71ac6c0026a141c0502ac9fd3ea06960397e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 12 Oct 2011 20:20:12 +0000 Subject: [PATCH] Python 2.6.4 could not deepcopy the name_display svn: r18303 --- src/plugins/textreport/AncestorReport.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/textreport/AncestorReport.py b/src/plugins/textreport/AncestorReport.py index 15d961d02..0b9151268 100644 --- a/src/plugins/textreport/AncestorReport.py +++ b/src/plugins/textreport/AncestorReport.py @@ -31,6 +31,7 @@ #------------------------------------------------------------------------ import math import copy +import sys from gen.ggettext import gettext as _ #------------------------------------------------------------------------ @@ -108,7 +109,11 @@ class AncestorReport(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)