summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyisda/credit_index.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyisda/credit_index.pyx b/pyisda/credit_index.pyx
index 4bed815..0ce2161 100644
--- a/pyisda/credit_index.pyx
+++ b/pyisda/credit_index.pyx
@@ -276,7 +276,7 @@ cdef class CreditIndex(CurveList):
def __deepcopy__(self, memo):
cdef:
- CreditIndex copy = CreditIndex.__new__(CreditIndex)
+ CreditIndex copy = type(self).__new__(type(self))
size_t i
int n
TContingentLeg* cl