--- a/tests/hgweberror.py Sat Oct 05 10:29:34 2019 -0400
+++ b/tests/hgweberror.py Sun Oct 06 09:45:02 2019 -0400
@@ -2,9 +2,8 @@
from __future__ import absolute_import
-from mercurial.hgweb import (
- webcommands,
-)
+from mercurial.hgweb import webcommands
+
def raiseerror(web):
'''Dummy web command that raises an uncaught Exception.'''
@@ -19,6 +18,7 @@
raise AttributeError('I am an uncaught error!')
+
def extsetup(ui):
setattr(webcommands, 'raiseerror', raiseerror)
webcommands.__all__.append(b'raiseerror')