tests/hgweberror.py
changeset 27299 74e6de99ce7f
parent 23409 dc4d2cd3aa3e
child 36865 3d60a22e27f5
equal deleted inserted replaced
27298:e1f55b50edcb 27299:74e6de99ce7f
     1 # A dummy extension that installs an hgweb command that throws an Exception.
     1 # A dummy extension that installs an hgweb command that throws an Exception.
     2 
     2 
     3 from mercurial.hgweb import webcommands
     3 from __future__ import absolute_import
       
     4 
       
     5 from mercurial.hgweb import (
       
     6     webcommands,
       
     7 )
     4 
     8 
     5 def raiseerror(web, req, tmpl):
     9 def raiseerror(web, req, tmpl):
     6     '''Dummy web command that raises an uncaught Exception.'''
    10     '''Dummy web command that raises an uncaught Exception.'''
     7 
    11 
     8     # Simulate an error after partial response.
    12     # Simulate an error after partial response.