Oops, forgot this guy.

This commit is contained in:
Jeremy Fincher 2004-02-07 22:24:41 +00:00
parent 0ab86752a7
commit c43947ce63

View File

@ -32,8 +32,10 @@
__revision__ = "$Id$" __revision__ = "$Id$"
class Reader(object): class Reader(object):
def __init__(self, Creator): def __init__(self, Creator, *args, **kwargs):
self.Creator = Creator self.Creator = Creator
self.args = args
self.kwargs = kwargs
self.creator = None self.creator = None
self.modifiedCreator = False self.modifiedCreator = False
self.indent = None self.indent = None
@ -58,7 +60,7 @@ class Reader(object):
# New indentation level. # New indentation level.
if self.creator is not None: if self.creator is not None:
self.creator.finish() self.creator.finish()
self.creator = self.Creator() self.creator = self.Creator(*self.args, **self.kwargs)
self.modifiedCreator = False self.modifiedCreator = False
self.indent = indent self.indent = indent
(command, rest) = s.split(None, 1) (command, rest) = s.split(None, 1)