Revision: 4421 Author: btongminh Date: 2007-10-04 19:37:02 +0000 (Thu, 04 Oct 2007)
Log Message: ----------- Revert r4398
Modified Paths: -------------- trunk/pywikipedia/commonsdelinker/delinker.py
Modified: trunk/pywikipedia/commonsdelinker/delinker.py =================================================================== --- trunk/pywikipedia/commonsdelinker/delinker.py 2007-10-04 18:08:47 UTC (rev 4420) +++ trunk/pywikipedia/commonsdelinker/delinker.py 2007-10-04 19:37:02 UTC (rev 4421) @@ -250,7 +250,7 @@ # likely embedded in a complicated template. hook = 'complex' r_templates = ur'(?s)({{.*?}})' - r_complicated = u'(?s)[|={]\s*((?:%s)?)%s' % (r_namespace, r_image) + r_complicated = u'(?s)\s*((?:%s)?)%s' % (r_namespace, r_image) def template_replacer(match): return re.sub(r_complicated, simple_replacer, match.group(1)) @@ -623,6 +623,7 @@ self.hooks[plugin.hook].append(plugin) def exec_hook(self, name, args): + # TODO: Threadsafety! if name in self.hooks: for plugin in self.hooks[name][:]: try: