hgkw/keyword.py
branch0.9.2compat
changeset 435 7bc92583f344
parent 433 d830cdde0ddb
child 444 987648c1ff69
--- a/hgkw/keyword.py	Sun Mar 30 18:25:25 2008 +0200
+++ b/hgkw/keyword.py	Mon Mar 31 10:50:10 2008 +0200
@@ -173,18 +173,12 @@
     def _kwweb_changeset(web, req, tmpl):
         '''Wraps webcommands.changeset turning off keyword expansion.'''
         kwtools['templater'].matcher = util.never
-        try:
-            return _webcommands_changeset(web, req, tmpl)
-        except TypeError:
-            return _webcommands_changeset(tmpl, web.changectx(req))
+        return _webcommands_changeset(web, req, tmpl)
 
     def _kwweb_filediff(web, req, tmpl):
         '''Wraps webcommands.filediff turning off keyword expansion.'''
         kwtools['templater'].matcher = util.never
-        try:
-            return _webcommands_filediff(web, req, tmpl)
-        except TypeError:
-            return _webcommands_filediff(tmpl, web.filectx(req))
+        return _webcommands_filediff(web, req, tmpl)
 
     webcommands.changeset = webcommands.rev = _kwweb_changeset
     webcommands.filediff = webcommands.diff = _kwweb_filediff