From 36290068ab047dc75098549d8f0d0cdeb4d4b570 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 18 Jan 2008 19:27:37 -0700 Subject: [PATCH] Another fix for changed __init__ --- gapstr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gapstr.py b/gapstr.py index a276b74..f8f4619 100755 --- a/gapstr.py +++ b/gapstr.py @@ -15,6 +15,7 @@ class GapString: self.length = 0 self.drop = drop if init: + print init self.append(init) def __len__(self): @@ -98,7 +99,7 @@ class GapString: if isinstance(other, str): self.append(other) else: - new = self.__class__(self.drop) + new = self.__class__(drop=self.drop) new.extend(self) new.extend(other) return new @@ -108,7 +109,7 @@ class GapString: mask = [mask] masklen = len(mask) - new = self.__class__(self.drop) + new = self.__class__(drop=self.drop) for i in self.contents: if isinstance(i, int): new.append(i)