From 54ed4276a47f560f8343f7407469f4579701161f Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 26 Jun 2012 16:25:27 +0000 Subject: [PATCH] Remove deepcopy workaround for old python versions, only python 2.7 now svn: r19926 --- src/gramps.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/gramps.py b/src/gramps.py index 071880d67..b1172e201 100644 --- a/src/gramps.py +++ b/src/gramps.py @@ -121,21 +121,6 @@ if not sys.version_info >= MIN_PYTHON_VERSION : 'v3': MIN_PYTHON_VERSION[2]}) sys.exit(1) -#------------------------------------------------------------------------- -# -# deepcopy workaround -# -#------------------------------------------------------------------------- -# In versions < 2.7 python does not properly copy methods when doing a -# deepcopy. This workaround makes the copy work properly. When Gramps no longer -# supports python 2.6, this workaround can be removed. -if sys.version_info < (2, 7) : - import copy - import types - def _deepcopy_method(x, memo): - return type(x)(x.im_func, copy.deepcopy(x.im_self, memo), x.im_class) - copy._deepcopy_dispatch[types.MethodType] = _deepcopy_method - #------------------------------------------------------------------------- # # gramps libraries