From c43947ce635b18363c6b1fdd255f422148eb4c5b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 7 Feb 2004 22:24:41 +0000 Subject: [PATCH] Oops, forgot this guy. --- src/unpreserve.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unpreserve.py b/src/unpreserve.py index 6c0f53186..d4de95faa 100644 --- a/src/unpreserve.py +++ b/src/unpreserve.py @@ -32,8 +32,10 @@ __revision__ = "$Id$" class Reader(object): - def __init__(self, Creator): + def __init__(self, Creator, *args, **kwargs): self.Creator = Creator + self.args = args + self.kwargs = kwargs self.creator = None self.modifiedCreator = False self.indent = None @@ -58,7 +60,7 @@ class Reader(object): # New indentation level. if self.creator is not None: self.creator.finish() - self.creator = self.Creator() + self.creator = self.Creator(*self.args, **self.kwargs) self.modifiedCreator = False self.indent = indent (command, rest) = s.split(None, 1)