Commit b8658561 authored by Vincent Pelletier's avatar Vincent Pelletier

Name must be a string (it is used in getattr/setattr).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a215b9fe
......@@ -54,7 +54,7 @@ class ParserPool(object):
def register(self, parser):
parser_registry = self.parser_registry
name = (parser.__module__, parser.__name__)
name = '.'.join((parser.__module__, parser.__name__))
if name in parser_registry:
raise ValueError, 'Duplicate parser for name %r' % (name, )
parser_registry[name] = parser
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment