Python 2.6.4 could not deepcopy the name_display
svn: r18306
This commit is contained in:
parent
ef7f9ea0bf
commit
5001870f8d
@ -34,6 +34,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import copy
|
import copy
|
||||||
|
import sys
|
||||||
from gen.ggettext import gettext as _
|
from gen.ggettext import gettext as _
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
@ -140,7 +141,12 @@ class DetAncestorReport(Report):
|
|||||||
|
|
||||||
# Copy the global NameDisplay so that we don't change application
|
# Copy the global NameDisplay so that we don't change application
|
||||||
# defaults.
|
# 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()
|
name_format = menu.get_option_by_name("name_format").get_value()
|
||||||
if name_format != 0:
|
if name_format != 0:
|
||||||
self._name_display.set_default_format(name_format)
|
self._name_display.set_default_format(name_format)
|
||||||
|
Loading…
Reference in New Issue
Block a user