diff options
author | Richard Darst <rkd@zgib.net> | 2009-07-01 22:43:38 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-07-01 22:43:38 (GMT) |
commit | 975f334b7cf1ab36c1bdb0d05b33c9b06cb39e71 (patch) | |
tree | 87ae91b6c6dc005f35dddd09c2513be4d99cdfd6 /supybotconfig.py | |
parent | e2d92d2486678005213332b5b9aa0fb869b51706 (diff) |
Change format of writer_map
- we don't store already-instantiated classes in writer_map. The writers
are now instantiated with the meeting object as the argument.
darcs-hash:20090701224338-82ea9-1abfb53173ce382764868b6c57a5b2929b36a991.gz
Diffstat (limited to 'supybotconfig.py')
-rw-r--r-- | supybotconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/supybotconfig.py b/supybotconfig.py index 8282f0b..deb6585 100644 --- a/supybotconfig.py +++ b/supybotconfig.py @@ -36,12 +36,12 @@ class WriterMap(registry.String): for e, w in writer_map.iteritems(): if not hasattr(w, "format"): raise ValueError("Writer %s must have method .format()"% - w.__class__.__name__) + w.__name__) self.value = writer_map def __str__(self): writers_string = [ ] for ext, w in self.value.iteritems(): - name = w.__class__.__name__ + name = w.__name__ writers_string.append("%s:%s"%(name, ext)) return " ".join(writers_string) |