From e6729cedfe0910f9a5341e5dcd7269319743c7cf Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 30 Apr 2018 19:14:53 -0500
Subject: [PATCH] Remove ExpansionTermsWrangler.copy, fix docstring formatting

---
 sumpy/expansion/__init__.py | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/sumpy/expansion/__init__.py b/sumpy/expansion/__init__.py
index 22223b47..5b6ac7c2 100644
--- a/sumpy/expansion/__init__.py
+++ b/sumpy/expansion/__init__.py
@@ -189,16 +189,6 @@ class ExpansionTermsWrangler(object):
         res = sorted(gnitstam(self.order, self.dim), key=sum)
         return res
 
-    def copy(self, **kwargs):
-        order = kwargs.pop('order', self.order)
-        dim = kwargs.pop('dim', self.dim)
-
-        if kwargs:
-            raise TypeError("unexpected keyword arguments '%s'"
-                % ", ".join(kwargs))
-
-        return type(self)(order, dim)
-
 
 class FullExpansionTermsWrangler(ExpansionTermsWrangler):
 
@@ -261,9 +251,9 @@ class LinearRecurrenceBasedExpansionTermsWrangler(ExpansionTermsWrangler):
         :param dim: number of dimensions
         :param deriv_multiplier: a symbolic expression that is used to
             'normalize out' constant coefficients in the PDE in
-            :func:`~LinearRecurrenceBasedExpansionTermsWrangler.get_pde_dict`, so that
-            the Taylor coefficient with multi-index :math:`\nu` as seen by that
-            representation of the PDE is :math:`\text{coeff} /
+            :func:`~LinearRecurrenceBasedExpansionTermsWrangler.get_pde_dict`,
+            so that the Taylor coefficient with multi-index :math:`\nu` as seen
+            by that representation of the PDE is :math:`\text{coeff} /
             {\text{deriv\_multiplier}^{|\nu|}}`.
         """
         super(LinearRecurrenceBasedExpansionTermsWrangler, self).__init__(order, dim)
-- 
GitLab